From 2a590ff09566d80c2c91d3973ba75f1eb0bf25ed Mon Sep 17 00:00:00 2001 From: "Adam D. Barratt" Date: Wed, 6 Feb 2013 19:56:04 +0000 Subject: [PATCH] Replace a single-use list in the smooth updates checks with any() Signed-off-by: Adam D. Barratt --- britney.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/britney.py b/britney.py index 4edce54..4e567ce 100755 --- a/britney.py +++ b/britney.py @@ -1891,9 +1891,8 @@ class Britney(object): # outside of the current source for p in check: binary, parch = p.split("/") - rdeps = [ bin for bin in binaries[parch][0][binary][RDEPENDS] \ - if bin in [y.split("/")[0] for y in smoothbins] ] - if len(rdeps) > 0: + if any(bin for bin in binaries[parch][0][binary][RDEPENDS] \ + if bin in [y.split("/")[0] for y in smoothbins]): smoothbins.append(p) # remove all the binaries which aren't being smooth updated