1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

- support also plain "osc mr" from package checkout

This commit is contained in:
Adrian Schröter 2012-05-03 13:50:44 +02:00
parent b38dd0191f
commit 79d970f885

View File

@ -2669,7 +2669,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
source_project = source_packages = target_project = release_project = opt_sourceupdate = None
if len(args) == 0 and is_project_dir(os.curdir):
if len(args) == 0 and (is_project_dir(os.curdir) or is_package_dir(os.curdir)):
source_project = store_read_project(os.curdir)
elif len(args) == 0:
raise oscerr.WrongArgs('Too few arguments.')