This commit is contained in:
Jonas Borgström 2011-08-16 22:17:27 +02:00
parent 143a393750
commit c791bf574b
1 changed files with 1 additions and 1 deletions

View File

@ -249,7 +249,7 @@ class Archiver(object):
if args.monthly:
keep += purge_split(archives, '%Y-%m', args.monthly, keep)
if args.yearly:
keep += purge_split(archives, '%Y', args.weekly, keep)
keep += purge_split(archives, '%Y', args.yearly, keep)
keep.sort(key=attrgetter('ts'), reverse=True)
to_delete = [a for a in archives if a not in keep]