]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- set cleanup-algorithm
authorArvin Schnell <aschnell@suse.de>
Wed, 29 Jun 2011 09:33:30 +0000 (11:33 +0200)
committerArvin Schnell <aschnell@suse.de>
Wed, 29 Jun 2011 09:33:30 +0000 (11:33 +0200)
scripts/snapper-hourly
scripts/zypp-plugin.py

index 3a8ef73cae91d61f8f8e4668b8644c845689de45..8685b1ea5cc533bd537e431454f9707d9be9201a 100755 (executable)
@@ -33,7 +33,7 @@ for CONFIG in $SNAPPER_CONFIGS ; do
     . /etc/snapper/configs/$CONFIG
 
     if [ "$TIMELINE_CREATE" = "yes" ] ; then
-       snapper --config=$CONFIG --quiet create --description="timeline" --cleanup="timeline"
+       snapper --config=$CONFIG --quiet create --description="timeline" --cleanup-algorithm="timeline"
     fi
 
 done
index d6be309299d33b3e7dd70ab0f102852865089c21..65df4bab29cfcdaf80d9c100ae50b6aa2b05e1ec 100755 (executable)
@@ -7,7 +7,8 @@ class MyPlugin(Plugin):
 
   def PLUGINBEGIN(self, headers, body):
 
-    args = ["snapper", "create", "--type=pre", "--print-number", "--description=zypp"]
+    args = ["snapper", "create", "--type=pre", "--print-number",
+            "--cleanup-algorithm=number", "--description=zypp"]
     self.o = Popen(args, stdout=PIPE).communicate()[0].strip()
 
     self.ack()