From 1c825ec8b6df8168918edce6517a9c260553b231 Mon Sep 17 00:00:00 2001 From: Maximilian Meister Date: Tue, 28 May 2019 11:40:49 +0200 Subject: [PATCH 9/9] 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 --- osc/fetch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/fetch.py b/osc/fetch.py index 597f7df..d84474e 100644 --- a/osc/fetch.py +++ b/osc/fetch.py @@ -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 -- 2.21.0