1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

fix broken importsrcpkg for python3

without this patch, `importsrcpkg` breaks with the following output:

```
  File "/usr/lib/python3.7/site-packages/osc/commandline.py", line 7868, in do_importsrcpkg
    createPackageDir(os.path.join(project.dir, pac), project)
  File "/usr/lib64/python3.7/posixpath.py", line 94, in join
    genericpath._check_arg_types('join', a, *p)
  File "/usr/lib64/python3.7/genericpath.py", line 151, in _check_arg_types
    raise TypeError("Can't mix strings and bytes in path components") from None
TypeError: Can't mix strings and bytes in path components
```

Fixes #712
This commit is contained in:
Frank Schreiner 2019-12-20 08:36:08 +01:00
parent 32ec356bad
commit ae0b55de3b
No known key found for this signature in database
GPG Key ID: 65116CB6DC29CBE5

View File

@ -7860,7 +7860,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
print('please specify a package name with the \'--name\' option. ' \
'The automatic detection failed', file=sys.stderr)
sys.exit(1)
pac = pac.decode()
if conf.config['do_package_tracking']:
createPackageDir(os.path.join(project.dir, pac), project)
else: