1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-28 15:36:13 +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: if len(args) > 0:
project = args[0] project = args[0]
else: else:
# try using the working copy at hand project = store_read_project(os.curdir)
p = findpacs(os.curdir)[0] try:
project = p.prjname package = store_read_package(os.curdir)
package = p.name except oscerr.NoWorkingCopy:
pass
if len(args) > 1: if len(args) > 1:
package = args[1] package = args[1]