mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-23 05:26:16 +01:00
- do not crash when give 5 arguments to "osc whatdependson" (bnc#719691)
This commit is contained in:
parent
cd89d91d13
commit
747bca7741
@ -4653,7 +4653,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
if len(args) < 2 and (is_package_dir('.') or is_project_dir('.')):
|
if len(args) < 2 and (is_package_dir('.') or is_project_dir('.')):
|
||||||
self.print_repos()
|
self.print_repos()
|
||||||
|
|
||||||
if len(args) > 5:
|
if len(args) > 4:
|
||||||
raise oscerr.WrongArgs('Too many arguments.')
|
raise oscerr.WrongArgs('Too many arguments.')
|
||||||
|
|
||||||
apiurl = self.get_api_url()
|
apiurl = self.get_api_url()
|
||||||
|
Loading…
Reference in New Issue
Block a user