Replace a single-use list in the smooth updates checks with any()

Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
master
Adam D. Barratt 12 years ago
parent 8a3d4fd595
commit cd47a75726

@ -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…
Cancel
Save