1
0
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:
Maximilian Meister 2019-05-28 11:40:49 +02:00
parent cf96f85590
commit 1c825ec8b6
No known key found for this signature in database
GPG Key ID: A96DF76D673B2117

View File

@ -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