mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-03 18:16:17 +01: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:
parent
cf96f85590
commit
1c825ec8b6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user