mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-23 11:21:13 +00:00
Abort when do_all fails without transaction to rollback
When do_all fails, and there is no transaction to rollback, we will probably leave a broken state behind. This codepath probably isn't triggered unless something else is broken. Signed-off-by: Ivo De Decker <ivodd@debian.org>
This commit is contained in:
parent
4de569114a
commit
4defca4cc1
@ -1098,7 +1098,10 @@ class Britney(object):
|
||||
else:
|
||||
output_logger.info("FAILED\n")
|
||||
if not transaction:
|
||||
return
|
||||
# if we 'FAILED', but we cannot rollback, we will probably
|
||||
# leave a broken state behind
|
||||
# this should not happen
|
||||
raise AssertionError("do_all FAILED but no transaction to rollback")
|
||||
transaction.rollback()
|
||||
if self.options.check_consistency_level >= 2:
|
||||
target_suite.check_suite_source_pkg_consistency('do_all after rollback')
|
||||
|
Loading…
x
Reference in New Issue
Block a user