From 538d5c61ff5794b4671b00e1af043338bc20f237 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Mon, 22 Oct 2012 13:50:07 +0100 Subject: [PATCH] Use default urgency for all packages if Urgencies is missing --- britney2/policies/policy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/britney2/policies/policy.py b/britney2/policies/policy.py index 7a34c37..bd08e93 100644 --- a/britney2/policies/policy.py +++ b/britney2/policies/policy.py @@ -341,6 +341,10 @@ class AgePolicy(BasePolicy): except AttributeError: filename = fallback_filename + if not os.path.exists(filename): + self.log("%s missing; using default for all packages" % filename) + return + with open(filename, errors='surrogateescape', encoding='ascii') as fd: for line in fd: #