[Aptitude-devel] Bug#720750: aptitude: search returns different numbers of packages depending on sort order

Manuel A. Fernandez Montecelo manuel.montezelo at gmail.com
Mon Feb 3 15:58:45 UTC 2014

2014-02-03 Daniel Hartwig <mandyke at gmail.com>:
>>> The search results will now include duplicate packages where there are
>>> multiple search patterns matching the same package:
>>> $ ./aptitude search '?name(^emacs24)' '?name(^emacs24)'
>>> p   emacs24                         - GNU Emacs editor (with GTK+ user interface
>>> p   emacs24                         - GNU Emacs editor (with GTK+ user interface
>>> [...]
>>> (That example is obviously contrived, but it is quite common for
>>> multiple patterns to have overlapping matches.)
>> Perhaps it has the intended effect then? ;-)
> Duplicates are not desirable, even if it resolves the issue with
> missing packages.  Anyway, lets just have it reverted and fixed on
> wip-cmdline (weeks now, see below).

It was a joke, that if one puts the terms twice, having duplicated
output might be the intended behaviour.

I agree that this the current solution is not good in the case of
overlaps (or well, trades one bug for one undesired behaviour or bug,
depending on the point of view).

So I will fix this within a couple of days, no problem.

>>> Though, as I mentioned, this
>>> will otherwise be resolved by the pending merge of wip-cmdline.
>> When is this going to be fixed more or less?  Weeks or months?
> I expect within two weeks.

It would be good if you send the plans to the mailing list soonish, to
see how these fixes translate in releases.

Manuel A. Fernandez Montecelo <manuel.montezelo at gmail.com>

More information about the Aptitude-devel mailing list