diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-11-21 22:19:17 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-11-21 22:19:17 +0100 |
commit | 430927ad80a0ad434d500cbb9d65a1601551d325 (patch) | |
tree | 99dd5af17951e1dcc2564449be1376b75db6c880 | |
parent | 5c078f763d2b0f2ad60bcd71fe4770b8edfa1279 (diff) |
import-orig: avoid not
Gbp-Dch: Ignore
-rw-r--r-- | gbp/scripts/import_orig.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gbp/scripts/import_orig.py b/gbp/scripts/import_orig.py index 7c911f6a..d80dd63e 100644 --- a/gbp/scripts/import_orig.py +++ b/gbp/scripts/import_orig.py @@ -296,15 +296,15 @@ def find_upstream(use_uscan, args): except UscanError as e: raise GbpError("%s" % e) - if not uscan.uptodate: + if uscan.uptodate: + gbp.log.info("package is up to date, nothing to do.") + return None + else: if uscan.tarball: gbp.log.info("Using uscan downloaded tarball %s" % uscan.tarball) args.append(uscan.tarball) else: raise GbpError("uscan didn't download anything, and no source was found in ../") - else: - gbp.log.info("package is up to date, nothing to do.") - return None if len(args) > 1: # source specified raise GbpError("More than one archive specified. Try --help.") elif len(args) == 0: |