mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 06:46:15 +01:00
- support "submitreq list" also in a project
directory
This commit is contained in:
parent
6c13b8accc
commit
eb8a8bbc79
@ -501,10 +501,11 @@ class Osc(cmdln.Cmdln):
|
||||
if len(args) > 0:
|
||||
project = args[0]
|
||||
else:
|
||||
# try using the working copy at hand
|
||||
p = findpacs(os.curdir)[0]
|
||||
project = p.prjname
|
||||
package = p.name
|
||||
project = store_read_project(os.curdir)
|
||||
try:
|
||||
package = store_read_package(os.curdir)
|
||||
except oscerr.NoWorkingCopy:
|
||||
pass
|
||||
|
||||
if len(args) > 1:
|
||||
package = args[1]
|
||||
|
Loading…
Reference in New Issue
Block a user