Move loop-invariant out of loop

Signed-off-by: Niels Thykier <niels@thykier.net>
ubuntu/rebased
Niels Thykier 7 years ago
parent 02001d4d4f
commit 35add7cb26

@ -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 = []

Loading…
Cancel
Save