Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inversed --use option variant #81

Open
nick87720z opened this issue Nov 3, 2020 · 1 comment
Open

Inversed --use option variant #81

nick87720z opened this issue Nov 3, 2020 · 1 comment

Comments

@nick87720z
Copy link

There could be option like --no-use, which would have inversed effect comparing to --use, i.e. select packages, that don't have mentioned flag.

As for use case (I just have it), it could be used with --installed-with-use to find installed packages that dropped some obsoleted use flag. E.g. I could use it to find those, which droped python2_7 support.
For now I had to do it with diff:

diff \
<( eix -c --installed-with-use python_targets_python2_7 --only-names ) \
<( eix -c --installed-with-use python_targets_python2_7 --use python_targets_python2_7 --only-names ) | less

but that's not as convenient as if packages were listed by eix.

@vaeth
Copy link
Owner

vaeth commented Nov 3, 2020

You can use logical expressions everywhere in your query. I suppose that

eix -c --installed-with-use python_targets_python2_7 --and --not --use python_targets_python2_7

will do what you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants