mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-06-06 07:12:05 +00:00
Use default urgency for all packages if Urgencies is missing.
This commit is contained in:
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…
x
Reference in New Issue
Block a user