From 35add7cb26ebe1d9944f40cfc626ef8ff7ee587d Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sun, 12 Aug 2018 13:50:22 +0000 Subject: [PATCH] Move loop-invariant out of loop Signed-off-by: Niels Thykier --- britney2/installability/builder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/britney2/installability/builder.py b/britney2/installability/builder.py index 5934cd9..8a58d97 100644 --- a/britney2/installability/builder.py +++ b/britney2/installability/builder.py @@ -28,11 +28,12 @@ def build_installability_tester(suite_info, archs): for (suite, arch) in product(suite_info, archs): packages_s_a = suite.binaries[arch][0] + is_target = suite.suite_class.is_target for pkgdata in packages_s_a.values(): pkg_id = pkgdata.pkg_id if not builder.add_binary(pkg_id, essential=pkgdata.is_essential, - in_testing=suite.suite_class.is_target): + in_testing=is_target): continue depends = []