mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-06 21:28:42 +02:00
cast bytes object to string during os.path.join
this makes sure not to mix objects to prevent a TypeError TypeError: Can't mix strings and bytes in path components Fixes#567 Signed-off-by: Maximilian Meister <mmeister@suse.de>
This commit is contained in:
@@ -176,7 +176,7 @@ class Fetcher:
|
||||
sys.exit(1)
|
||||
canonname = pac_obj.binary
|
||||
|
||||
fullfilename = os.path.join(destdir, canonname)
|
||||
fullfilename = os.path.join(destdir, decode_it(canonname))
|
||||
if pac_obj is not None:
|
||||
pac_obj.canonname = canonname
|
||||
pac_obj.fullfilename = fullfilename
|
||||
|
Reference in New Issue
Block a user