Use default urgency for all packages if Urgencies is missing.

bzr-import-20160707
Colin Watson 12 years ago
parent 7049af338d
commit a9f50bc26b

@ -766,6 +766,7 @@ class Britney(object):
urgencies = {} urgencies = {}
filename = os.path.join(basedir, "Urgency") filename = os.path.join(basedir, "Urgency")
self.__log("Loading upload urgencies from %s" % filename) self.__log("Loading upload urgencies from %s" % filename)
try:
for line in open(filename): for line in open(filename):
l = line.split() l = line.split()
if len(l) != 3: continue if len(l) != 3: continue
@ -791,6 +792,8 @@ class Britney(object):
# update the urgency for the package # update the urgency for the package
urgencies[l[0]] = l[2] urgencies[l[0]] = l[2]
except IOError:
self.__log("%s missing; using default for all packages" % filename)
return urgencies return urgencies

Loading…
Cancel
Save