From 654a4c275271cb664e2d15c300af5a1090742b19 Mon Sep 17 00:00:00 2001 From: "Adam D. Barratt" Date: Wed, 3 Nov 2010 19:05:46 +0000 Subject: [PATCH] Simplify the method of removing broken arch packages from the main list Signed-off-by: Adam D. Barratt --- britney.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/britney.py b/britney.py index 8bcb3b6..3c9d10c 100755 --- a/britney.py +++ b/britney.py @@ -2499,7 +2499,7 @@ class Britney: archpackages = {} for a in self.options.break_arches.split(): archpackages[a] = [p for p in normpackages if p.endswith("/" + a) or p.endswith("/" + a + "_tpu")] - normpackages = [p for p in normpackages if not (p.endswith("/" + a) or p.endswith("/" + a + "_tpu"))] + normpackages = [p for p in normpackages if p not in archpackages[a]] self.upgrade_me = normpackages self.output_write("info: main run\n") self.do_all()