From 430927ad80a0ad434d500cbb9d65a1601551d325 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Tue, 21 Nov 2017 22:19:17 +0100 Subject: import-orig: avoid not Gbp-Dch: Ignore --- gbp/scripts/import_orig.py | 8 ++++---- 1 file 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: -- cgit v1.2.3