1
0
mirror of https://github.com/openSUSE/snapper.git synced 2026-02-06 00:45:39 +01:00
Files
snapper/examples/python/comparison.py

22 lines
424 B
Python
Raw Permalink Normal View History

2012-04-26 15:48:42 +02:00
#!/usr/bin/python
import dbus
bus = dbus.SystemBus()
2012-07-24 10:19:52 +02:00
snapper = dbus.Interface(bus.get_object('org.opensuse.Snapper', '/org/opensuse/Snapper'),
dbus_interface='org.opensuse.Snapper')
2012-04-26 15:48:42 +02:00
2012-05-02 16:16:00 +02:00
config_name = "root"
num_pre = 52
num_post = 53
2012-04-26 15:48:42 +02:00
2012-05-02 16:16:00 +02:00
snapper.CreateComparison(config_name, num_pre, num_post)
2012-04-26 15:48:42 +02:00
2012-05-02 16:16:00 +02:00
files = snapper.GetFiles(config_name, num_pre, num_post)
2012-04-26 15:48:42 +02:00
for file in files:
2012-09-05 10:09:24 +02:00
print file[0], file[1]
2012-05-02 16:16:00 +02:00