[testphase] Don't run repoclosure for empty variants

As a side effect, the non-existing repositories are no longer passed to
global repoclosure.

Fixes: #196
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2016-02-29 12:38:54 +01:00
parent 4a4ef23e3c
commit 44c4ef5c41

View File

@ -49,6 +49,8 @@ def run_repoclosure(compose):
arches = get_valid_arches(arch, is_multilib)
all_arches.update(arches)
for variant in compose.get_variants(arch=arch):
if variant.is_empty:
continue
lookaside = {}
if variant.parent:
repo_id = "repoclosure-%s.%s" % (variant.parent.uid, arch)