1
0
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:
Dirk Mueller 2008-06-27 17:14:15 +00:00
parent 6c13b8accc
commit eb8a8bbc79

View File

@ -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]