1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-09 22:36:14 +01:00
Do not create an MR for the entire project if "osc mr" is invoked in
a package wc (only create an MR for the specific package instead).
Strictly speaking, the "breaks" the existing UI - but this rather seems
to be a "fix" than a "break";)
This commit is contained in:
Marcus Huewe 2021-10-11 16:05:06 +02:00
commit b6f69180e2

View File

@ -3342,6 +3342,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if len(args) == 0 and (is_project_dir(os.curdir) or is_package_dir(os.curdir)):
source_project = store_read_project(os.curdir)
if is_package_dir(os.curdir):
source_packages = [store_read_package(os.curdir)]
elif len(args) == 0:
raise oscerr.WrongArgs('Too few arguments.')
if len(args) > 0: