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 | 015f1a714845b66752b7b8c00dbdb910a36098a4 (patch) | |
tree | 916545b5400562ba831f8f07c866b75002481007 | |
parent | 430927ad80a0ad434d500cbb9d65a1601551d325 (diff) |
import-orig: use separate exit code when uscan did not find anything new
-rw-r--r-- | gbp/scripts/common/__init__.py | 1 | ||||
-rw-r--r-- | gbp/scripts/import_orig.py | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/gbp/scripts/common/__init__.py b/gbp/scripts/common/__init__.py index e34a0c3c..5a8223fa 100644 --- a/gbp/scripts/common/__init__.py +++ b/gbp/scripts/common/__init__.py @@ -28,6 +28,7 @@ class ExitCodes(object): failed = 1 # All other errors no_value = 2 # Value does not exist (gbp config only) parse_error = 3 # Failed to parse configuration file + uscan_up_to_date = 4 # Uscan up to date (import-orig only) def is_download(args): diff --git a/gbp/scripts/import_orig.py b/gbp/scripts/import_orig.py index d80dd63e..1a690f85 100644 --- a/gbp/scripts/import_orig.py +++ b/gbp/scripts/import_orig.py @@ -556,8 +556,8 @@ def main(argv): upstream = download_orig(args[0]) else: upstream = find_upstream(options.uscan, args) - if not upstream: - return ExitCodes.failed + if not upstream: + return ExitCodes.uscan_up_to_date # The main tarball (sourcepackage, version) = detect_name_and_version(repo, upstream, options) |