Use default urgency for all packages if Urgencies is missing

pre-rebase-2016-10-25
Colin Watson 12 years ago committed by Martin Pitt
parent c40edb6cff
commit 475f8366b1

@ -323,6 +323,10 @@ class AgePolicy(BasePolicy):
except AttributeError: except AttributeError:
filename = fallback_filename 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: with open(filename, errors='surrogateescape', encoding='ascii') as fd:
for line in fd: for line in fd:
# <source> <version> <urgency> # <source> <version> <urgency>

Loading…
Cancel
Save