]> arthur.barton.de Git - bup.git/blobdiff - cmd/import-duplicity-cmd.py
Port rm and prune-older to vfs2
[bup.git] / cmd / import-duplicity-cmd.py
index ff37daf0e99bfd5ab859b601399d450d12f18fb8..812b6c7844feaa15038f9b2860637904a0ea9264 100755 (executable)
@@ -7,13 +7,13 @@ exec "$bup_python" "$0" ${1+"$@"}
 
 from calendar import timegm
 from pipes import quote
-from subprocess import check_call, check_output
+from subprocess import check_call
 from time import strftime, strptime
 import sys
 import tempfile
 
-from bup import git, options, vfs
-from bup.helpers import handle_ctrl_c, log, saved_errors, unlink
+from bup import git, options
+from bup.helpers import handle_ctrl_c, log, readpipe, saved_errors, unlink
 import bup.path
 
 optspec = """
@@ -40,7 +40,7 @@ def exo(cmd, shell=False):
     global opt
     logcmd(cmd)
     if not opt.dry_run:
-        return check_output(cmd, shell=shell)
+        return readpipe(cmd, shell=shell)
 
 
 handle_ctrl_c()
@@ -61,7 +61,6 @@ source_url, save_name = extra
 bup = bup.path.exe()
 
 git.check_repo_or_die()
-top = vfs.RefList(None)
 
 tmpdir = tempfile.mkdtemp(prefix='bup-import-dup-')
 try: