1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-27 02:16:12 +01:00

convenience mode for changedevelrequest

This commit is contained in:
Ludwig Nussel 2010-02-11 11:26:03 +01:00
parent cb5ac5af3e
commit 78d2e9c314

View File

@ -971,6 +971,13 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if len(args) > 4:
raise oscerr.WrongArgs('Too many arguments.')
if len(args) == 0 and is_package_dir('.') and len(conf.config['getpac_default_project']):
wd = os.curdir
project = store_read_project(wd)
package = store_read_package(wd)
apiurl = store_read_apiurl(wd)
else:
if len(args) < 3:
raise oscerr.WrongArgs('Too few arguments.')