1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-26 09:56:13 +01:00

Fix "NameError: name 'core' is not defined" when using Package

This commit is contained in:
Daniel Mach 2022-10-04 11:13:49 +02:00
parent fbde8fc256
commit 82981f544d

View File

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