X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fbup%2Fcmd%2Fimport_duplicity.py;h=3e3cce74a7a0f66845897ad840a153ca68f1b3b3;hb=847bace2085bbba833849301439fcca24d0e4946;hp=78ed1ee2fa8105b9f311ec641cedc9d1f09bf168;hpb=54b0467e48d27925ca8368d1f03c6254412b2786;p=bup.git diff --git a/lib/bup/cmd/import_duplicity.py b/lib/bup/cmd/import_duplicity.py old mode 100755 new mode 100644 index 78ed1ee..3e3cce7 --- a/lib/bup/cmd/import_duplicity.py +++ b/lib/bup/cmd/import_duplicity.py @@ -31,9 +31,10 @@ def exc(cmd, shell=False): def exo(cmd, shell=False, preexec_fn=None, close_fds=True): logcmd(cmd) - if not dry_run: - return helpers.exo(cmd, shell=shell, preexec_fn=preexec_fn, - close_fds=close_fds)[0] + if dry_run: + return b'' + return helpers.exo(cmd, shell=shell, preexec_fn=preexec_fn, + close_fds=close_fds)[0] def redirect_dup_output(): os.dup2(1, 3)