File 00-osc_fix_importsrcpkg_name_option.patch of Package osc

diff --git a/osc/commandline.py b/osc/commandline.py
index 6025306..82e6949 100644
--- a/osc/commandline.py
+++ b/osc/commandline.py
@@ -7886,7 +7886,8 @@ 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 not type(pac) == str:
+            pac = pac.decode()
         if conf.config['do_package_tracking']:
             createPackageDir(os.path.join(project.dir, pac), project)
         else:
openSUSE Build Service is sponsored by