mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-23 11:21:13 +00:00
Use default urgency for all packages if Urgencies is missing
This commit is contained in:
parent
dc4ea6ca2c
commit
ba3fec61c3
@ -460,8 +460,13 @@ class AgePolicy(BasePolicy):
|
||||
fallback_filename = os.path.join(self.suite_info.target_suite.path, 'Urgency')
|
||||
try:
|
||||
filename = os.path.join(self.state_dir, 'age-policy-urgencies')
|
||||
if not os.path.exists(filename) and os.path.exists(fallback_filename):
|
||||
filename = fallback_filename
|
||||
if not os.path.exists(filename):
|
||||
if os.path.exists(fallback_filename):
|
||||
filename = fallback_filename
|
||||
else:
|
||||
self.logger.info("%s and %s missing; using default for all packages" %
|
||||
(filename, fallback_filename))
|
||||
return
|
||||
except AttributeError:
|
||||
filename = fallback_filename
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user