1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-19 08:42:11 +01:00

Avoid printing urlquoted file names in 'getbinaries' command

This commit is contained in:
Daniel Mach 2024-11-11 16:43:46 +01:00
parent 31f65dd37e
commit 0638bd08cf

View File

@ -2680,7 +2680,7 @@ def download(url: str, filename, progress_obj=None, mtime=None):
os.fchmod(fd, 0o644)
try:
o = os.fdopen(fd, 'wb')
for buf in streamfile(url, http_GET, BUFSIZE, progress_obj=progress_obj):
for buf in streamfile(url, http_GET, BUFSIZE, progress_obj=progress_obj, text=filename):
if isinstance(buf, str):
o.write(bytes(buf, "utf-8"))
else: