Fix wrong condition when reusing old gather phase results.

When list is used in gather_lookaside_repos, the Pungi currently
fails with an exception. This is caused by inverted condition
in the code which tries to filter-out the lookaside repos
generated during the Pungin execution pointing to different
compose variants.

Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
This commit is contained in:
Jan Kaluza 2020-09-22 12:45:12 +02:00 committed by lsedlar
parent 27a825de48
commit 4623536b24
2 changed files with 21 additions and 1 deletions

View file

@ -238,7 +238,7 @@ def reuse_old_gather_packages(compose, arch, variant, package_sets):
# The gather_lookaside_repos config allows setting multiple repourls
# using list, but `_update_config` always uses strings. Therefore we
# only try to filter out string_types.
if isinstance(repourl, six.string_types):
if not isinstance(repourl, six.string_types):
continue
if not repourl.startswith(compose.topdir):
per_arch_repos_to_compare[arch] = repourl