1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-21 13:33:08 +00:00

setup_repos: print the reason, if download failed

It happened a few times lately and I realized it's dumb that I
can't see why.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2024-02-14 15:40:47 -08:00
parent 7aeced3988
commit d4c39fb37f

View File

@ -90,6 +90,7 @@ async def download_item(item, arch, targetdir):
# "No .*available for {nvr}" indicates there are no # "No .*available for {nvr}" indicates there are no
# packages for this arch in the build # packages for this arch in the build
if not f"available for {item}" in stderr: if not f"available for {item}" in stderr:
print(f"Downloading {item} failed: {stderr}")
return item return item
return False return False