mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-21 01:32:10 +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)
|
os.fchmod(fd, 0o644)
|
||||||
try:
|
try:
|
||||||
o = os.fdopen(fd, 'wb')
|
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):
|
if isinstance(buf, str):
|
||||||
o.write(bytes(buf, "utf-8"))
|
o.write(bytes(buf, "utf-8"))
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user