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:
commit
de5b13452a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user