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:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user