[Aptitude-devel] Bug#599364: aptitude: combining ?narrow and ?archive does not work as expected
Daniel Hartwig
mandyke at gmail.com
Wed Jun 13 10:21:23 BST 2012
usertags 599364 + rfc
thanks
> When I use a search expression like:
>
> aptitude search '?narrow(?installed,?archive(unstable))'
>
> I would expect to match only packages that have one version
> that is both installed and in unstable.
> (At least if I understood the documentation correctly)
>
> Instead what I get is the same as:
>
> aptitude search '?and(?installed,?archive(unstable))'
These searches do work as expected for me. Can you verify the
problem and provide details of the packages matched by each
search which you did not expect?
~$ aptitude --version | head -n1
aptitude 0.6.3 compiled at Aug 12 2011 21:08:09
~$ aptitude search '?and(?installed,?archive(unstable))' | wc -l
1678
~$ aptitude search '?narrow(?installed,?archive(unstable))' | wc -l
129
~$ aptitude search '?narrow(?installed,!?archive(unstable))' | wc -l
1762
~$ aptitude search '?installed' | wc -l
1891
~$ echo '129 + 1762' | bc
1891
Regards
More information about the Aptitude-devel
mailing list