mirror of
https://github.com/openSUSE/snapper.git
synced 2026-02-06 09:46:06 +01:00
19 lines
450 B
Python
Executable File
19 lines
450 B
Python
Executable File
#!/usr/bin/python
|
|
|
|
import dbus
|
|
|
|
bus = dbus.SystemBus()
|
|
|
|
snapper = dbus.Interface(bus.get_object('org.opensuse.snapper', '/org/opensuse/snapper'),
|
|
dbus_interface='org.opensuse.snapper')
|
|
|
|
|
|
snapshots = snapper.ListSnapshots("root")
|
|
|
|
for snapshot in snapshots:
|
|
print snapshot[0], snapshot[1], snapshot[2], snapshot[3], snapshot[4], snapshot[5],
|
|
for k, v in snapshot[6].items():
|
|
print "%s=%s" % (k, v),
|
|
print
|
|
|