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

- do not crash when give 5 arguments to "osc whatdependson" (bnc#719691)

This commit is contained in:
Adrian Schröter 2012-04-04 14:34:47 +02:00
parent cd89d91d13
commit 747bca7741

View File

@ -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('.')):
self.print_repos()
if len(args) > 5:
if len(args) > 4:
raise oscerr.WrongArgs('Too many arguments.')
apiurl = self.get_api_url()