mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-14 09:36:21 +01:00
Merge branch 'master' of https://github.com/matthewdva/osc
Fix "osc importsrcpkg --name <name>". Do not try to decode a str.
This commit is contained in:
commit
c3e7428631
@ -7900,6 +7900,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
title = opts.title
|
||||
if opts.name:
|
||||
pac = opts.name
|
||||
elif pac is not None:
|
||||
pac = pac.decode()
|
||||
if opts.description:
|
||||
descr = opts.description
|
||||
|
||||
@ -7908,7 +7910,6 @@ 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:
|
||||
|
Loading…
Reference in New Issue
Block a user