mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-10 14:07:29 +00:00
Save policy state before upgrade tester
We might not (want to) run the upgrade tester for some use cases, but we still need to save the policy state.
This commit is contained in:
parent
e93d8ae221
commit
e987fedd80
@ -2478,9 +2478,6 @@ class Britney(object):
|
||||
write_controlfiles(self.sources, self.binaries,
|
||||
'testing', self.suite_info['testing'].path)
|
||||
|
||||
for policy in self.policies:
|
||||
policy.save_state(self)
|
||||
|
||||
# write HeidiResult
|
||||
self.log("Writing Heidi results to %s" % self.options.heidi_output)
|
||||
write_heidi(self.options.heidi_output, self.sources["testing"],
|
||||
@ -2734,6 +2731,9 @@ class Britney(object):
|
||||
else:
|
||||
self.upgrade_me = self.options.actions.split()
|
||||
|
||||
for policy in self.policies:
|
||||
policy.save_state(self)
|
||||
|
||||
with open(self.options.upgrade_output, 'w', encoding='utf-8') as f:
|
||||
self.__output = f
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user