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:
parent
27a825de48
commit
4623536b24
2 changed files with 21 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue