From: Arvin Schnell Date: Wed, 29 Jun 2011 09:33:30 +0000 (+0200) Subject: - set cleanup-algorithm X-Git-Tag: v0.1.3~348 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=af8f7a06c3b96cb4ea083d775ca38ddf40bb2823;p=thirdparty%2Fsnapper.git - set cleanup-algorithm --- diff --git a/scripts/snapper-hourly b/scripts/snapper-hourly index 3a8ef73c..8685b1ea 100755 --- a/scripts/snapper-hourly +++ b/scripts/snapper-hourly @@ -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 diff --git a/scripts/zypp-plugin.py b/scripts/zypp-plugin.py index d6be3092..65df4bab 100755 --- a/scripts/zypp-plugin.py +++ b/scripts/zypp-plugin.py @@ -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()