Merge --deps in --check-deps

This commit is contained in:
Dimitris Zlatanidis 2016-10-11 11:41:39 +03:00
parent cfb5f75901
commit 52d06715ec
2 changed files with 5 additions and 1 deletions

View file

@ -1437,7 +1437,7 @@ Remove packages with all dependencies and check if used as dependency:
.. code-block:: bash
$ slpkg -r Flask --deps --check-deps
$ slpkg -r Flask --check-deps
Packages with name matching [ Flask ]

View file

@ -577,6 +577,10 @@ class ArgParse(object):
"-copy",
"-keep"
]
# merge --check-deps and --deps options
if (additional_options[1] in self.args and
additional_options[0] not in self.args):
self.args.append(additional_options[0])
if len(self.args) > 1 and self.args[0] in options:
for additional in additional_options:
if additional in self.args: