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
1 changed files with 1 additions and 0 deletions

View File

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