1
0
mirror of https://github.com/openSUSE/snapper.git synced 2026-02-05 15:46:00 +01:00

- set cleanup-algorithm

This commit is contained in:
Arvin Schnell
2011-06-29 11:33:30 +02:00
parent ef8377e859
commit af8f7a06c3
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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()