]> gitweb.fluxo.info Git - backupninja.git/commitdiff
Make logic consistent with what we're using elsewhere.
authorintrigeri <intrigeri@boum.org>
Sat, 22 Feb 2014 13:40:42 +0000 (13:40 +0000)
committerintrigeri <intrigeri@boum.org>
Sat, 22 Feb 2014 13:41:43 +0000 (13:41 +0000)
Without this change, e.g. 0.5.20 would not get --extra-clean, while it should.
Granted, the new test is buggy too, e.g. 0.7.1 will get --extra-clean,
while it should not. Will report that to Redmine.

handlers/dup.in

index 1ce7710ccdf0b7e4c85ed2d1e47f7cdb731dd834..18afb98016c810bff31b38c72d842b4cc1c48cd1 100644 (file)
@@ -191,7 +191,7 @@ else
 fi
 
 ### Cleanup options
-if [ "$duplicity_major" -le 0 -a "$duplicity_minor" -le 6 -a "$duplicity_sub" -le 19 ]; then
+if ! [ "$duplicity_major" -ge 0 -a "$duplicity_minor" -ge 6 -a "$duplicity_sub" -ge 20 ]; then
    execstr_options="${execstr_options} --extra-clean"
 fi