"""
# end of bup preamble
-from __future__ import print_function
+from __future__ import absolute_import, print_function
from collections import defaultdict
from itertools import groupby
from sys import stderr
import re, sys
from bup import git, options
+from bup.compat import int_types
from bup.gc import bup_gc
from bup.helpers import die_if_errors, log, partition, period_as_secs
+from bup.repo import LocalRepo
from bup.rm import bup_rm
if not opt.unsafe:
o.fatal('refusing to run dangerous, experimental command without --unsafe')
-now = int(time()) if not opt.wrt else opt.wrt
-if not isinstance(now, (int, long)):
+now = int(time()) if opt.wrt is None else opt.wrt
+if not isinstance(now, int_types):
o.fatal('--wrt value ' + str(now) + ' is not an integer')
period_start = {}
if not opt.pretend:
die_if_errors()
- bup_rm(removals, compression=opt.compress, verbosity=opt.verbose)
+ repo = LocalRepo()
+ bup_rm(repo, removals, compression=opt.compress, verbosity=opt.verbose)
if opt.gc:
die_if_errors()
bup_gc(threshold=opt.gc_threshold,