mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-11 02:21:33 +00:00
Replace a single-use list in the smooth updates checks with any()
Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
This commit is contained in:
parent
acec4ff6e3
commit
2a590ff095
@ -1891,9 +1891,8 @@ class Britney(object):
|
|||||||
# outside of the current source
|
# outside of the current source
|
||||||
for p in check:
|
for p in check:
|
||||||
binary, parch = p.split("/")
|
binary, parch = p.split("/")
|
||||||
rdeps = [ bin for bin in binaries[parch][0][binary][RDEPENDS] \
|
if any(bin for bin in binaries[parch][0][binary][RDEPENDS] \
|
||||||
if bin in [y.split("/")[0] for y in smoothbins] ]
|
if bin in [y.split("/")[0] for y in smoothbins]):
|
||||||
if len(rdeps) > 0:
|
|
||||||
smoothbins.append(p)
|
smoothbins.append(p)
|
||||||
|
|
||||||
# remove all the binaries which aren't being smooth updated
|
# remove all the binaries which aren't being smooth updated
|
||||||
|
Loading…
x
Reference in New Issue
Block a user