1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-25 17:36:13 +01:00

Merge pull request #1159 from dmach/fix-crash-Package

Fix "NameError: name 'core' is not defined" when using Package
This commit is contained in:
Daniel Mach 2022-10-05 13:57:55 +02:00 committed by GitHub
commit de5b13452a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1394,7 +1394,7 @@ class Osc(cmdln.Cmdln):
elif len(args) <= 2:
# try using the working copy at hand
p = core.Package(os.curdir)
p = Package(os.curdir)
src_project = p.prjname
src_package = p.name
if self.options.apiurl and self.options.apiurl != p.apiurl:
@ -1626,7 +1626,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
elif len(args) <= 2:
# try using the working copy at hand
p = core.Package(os.curdir)
p = Package(os.curdir)
src_project = p.prjname
src_package = p.name
if len(args) == 0 and p.islink():
@ -2738,7 +2738,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
rev = None
if len(args) == 0:
p = core.Package(os.curdir)
p = Package(os.curdir)
project = p.prjname
package = p.name
apiurl = p.apiurl