mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-12 23:17:03 +00:00
Properly remove failed tpu binNMUs from the result set
Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk> When undoing the addition to the result set of a binNMU from tpu, the package name from the hint will end in ${arch}_tpu, not ${arch}, so we should check for both cases. At the same time, reverse the sense of the associated test to make the logic more obvious.
This commit is contained in:
parent
a8d8b8c451
commit
5e3a245759
@ -2308,9 +2308,9 @@ class Britney:
|
|||||||
if pkg[0] != '-' and pkg_name in sources[suite]:
|
if pkg[0] != '-' and pkg_name in sources[suite]:
|
||||||
for p in sources[suite][pkg_name][BINARIES]:
|
for p in sources[suite][pkg_name][BINARIES]:
|
||||||
binary, arch = p.split("/")
|
binary, arch = p.split("/")
|
||||||
if "/" in pkg and arch != pkg[pkg.find("/")+1:]: continue
|
if '/' not in pkg or pkg.endswith("/%s" % (arch)) or pkg.endswith("/%s_tpu" % (arch)):
|
||||||
del binaries[arch][0][binary]
|
del binaries[arch][0][binary]
|
||||||
self.systems[arch].remove_binary(binary)
|
self.systems[arch].remove_binary(binary)
|
||||||
|
|
||||||
# undo the changes (binaries)
|
# undo the changes (binaries)
|
||||||
for p in undo['binaries'].keys():
|
for p in undo['binaries'].keys():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user