1
0
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:
Adrian Schröter 2021-10-08 17:13:53 +02:00
parent 3b90480dfc
commit 2b278e7226
No known key found for this signature in database
GPG Key ID: 918D8C954C08DB67

View File

@ -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: