gather: Work with repos without location_base
A repo does not necessarily have the location_base attribute if the packages are next to the repodata. This can easily happen for lookaside repos. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
e78f8d1f13
commit
604ec40c8e
@ -399,7 +399,7 @@ def expand_packages(nevra_to_pkg, variant_modules, lookasides, nvrs):
|
||||
md.locate_and_load_xml(repo)
|
||||
for key in md.keys():
|
||||
pkg = md.get(key)
|
||||
url = os.path.join(pkg.location_base, pkg.location_href)
|
||||
url = os.path.join(pkg.location_base or repo, pkg.location_href)
|
||||
# Strip file:// prefix
|
||||
lookaside_packages.add(url[7:])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user