mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +01:00
Merge --deps in --check-deps
This commit is contained in:
parent
cfb5f75901
commit
52d06715ec
2 changed files with 5 additions and 1 deletions
|
@ -1437,7 +1437,7 @@ Remove packages with all dependencies and check if used as dependency:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
$ slpkg -r Flask --deps --check-deps
|
$ slpkg -r Flask --check-deps
|
||||||
|
|
||||||
Packages with name matching [ Flask ]
|
Packages with name matching [ Flask ]
|
||||||
|
|
||||||
|
|
|
@ -577,6 +577,10 @@ class ArgParse(object):
|
||||||
"-copy",
|
"-copy",
|
||||||
"-keep"
|
"-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:
|
if len(self.args) > 1 and self.args[0] in options:
|
||||||
for additional in additional_options:
|
for additional in additional_options:
|
||||||
if additional in self.args:
|
if additional in self.args:
|
||||||
|
|
Loading…
Reference in a new issue