diff options
author | Guido Günther <agx@sigxcpu.org> | 2019-10-26 17:02:00 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2019-10-27 11:34:49 +0100 |
commit | c650691cb23afa82f8791166fc95b0b56ececeaa (patch) | |
tree | 4da7b2113887fceb75ee99589f0c22f2600c66d8 | |
parent | 80fda4eac56c6700dde7a97c2c764f452508787f (diff) |
find_upstream: Add signature file if found
-rw-r--r-- | gbp/scripts/import_orig.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gbp/scripts/import_orig.py b/gbp/scripts/import_orig.py index 26eb3c79..0aa4ec79 100644 --- a/gbp/scripts/import_orig.py +++ b/gbp/scripts/import_orig.py @@ -178,7 +178,12 @@ def find_upstream(use_uscan, args, version=None): elif len(args) == 0: raise GbpError("No archive to import specified. Try --help.") else: - return DebianUpstreamSource(args[0]) + sig = '{}.asc'.format(args[0]) + if os.path.exists(sig): + gbp.log.debug("Signature {} found for {}".format(args[0], sig)) + else: + sig = None + return DebianUpstreamSource(args[0], sig=sig) def debian_branch_merge(repo, tag, version, options): |