aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-01-11 10:24:35 +0100
committerGuido Günther <agx@sigxcpu.org>2017-01-11 10:53:43 +0100
commit287b170488897663597054c77900372ca9e92c10 (patch)
tree4c92feff68c5602324b39743798522b21ba64fd5
parent4086fc9b7e019b70eda53391489d3644494abba5 (diff)
import-orig: Make sure we exit non zero
Although none of the callers returns None but raises an exception this is more defensive.
-rw-r--r--gbp/scripts/import_orig.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gbp/scripts/import_orig.py b/gbp/scripts/import_orig.py
index 7013a65..2e139ab 100644
--- a/gbp/scripts/import_orig.py
+++ b/gbp/scripts/import_orig.py
@@ -520,7 +520,7 @@ def main(argv):
else:
source = find_source(options.uscan, args)
if not source:
- return ret
+ return ExitCodes.failed
# The main tarball
(sourcepackage, version) = detect_name_and_version(repo, source, options)