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:
parent
31f65dd37e
commit
0638bd08cf
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user