mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-09 22:36:14 +01:00
avoid sending entire projects on "osc mr"
We may have a package working directory, so we should only put this into request and not entire project.
This commit is contained in:
parent
3b90480dfc
commit
2b278e7226
@ -3335,6 +3335,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:
|
||||
|
Loading…
Reference in New Issue
Block a user