pkglist: Don't exit with 0 if the stagings didn't calculcate lists

This commit is contained in:
Stephan Kulow 2022-03-11 15:42:56 +01:00
parent 8c94506352
commit 378a00af51

View File

@ -97,6 +97,9 @@ class CommandLineInterface(ToolBase.CommandLineInterface):
stop_after_solve=opts.stop_after_solve) stop_after_solve=opts.stop_after_solve)
except MismatchedRepoException: except MismatchedRepoException:
logging.error("Failed to create weakremovers.inc due to mismatch in repos - project most likey started building again.") logging.error("Failed to create weakremovers.inc due to mismatch in repos - project most likey started building again.")
# for stagings we have to be strict on the exit value
if scope == 'staging':
return 1
return 0 return 0
scope = opts.scope scope = opts.scope