[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#926476: apt search vs apt-cache search package list / output format



Hi,

On Fri, Apr 05, 2019 at 09:16:39PM +0200, Darshaka Pathirana wrote:
> * [1] The list of packages differ (3 vs 59 packages)

This happens because "x-window-manager" as a string appears only in
those three package descriptions. The old search finds them because
these packages have a "Provides: x-window-manager" which the new one
isn't taking into consideration. I think that can be argued both ways
and then it might still not be the intended result for this request
given that with such a 'search' a user is likely looking for packages
with that provides line only (which is somewhat approximated by -n in
old search, but that can again be argued both ways). So that request
might be better served by 'show' – if it would list providers instead of
being useless at the moment with virtual packages.


> * [2] The output format is not the same (2 lines + empty line vs 1 line per package)

Yeah. We wanted to experiment with showing more details. I am not that
much of a fan of new myself especially as we aren't paging yet, but old
is equally bad in its own way…

You don't happen to have an nice formatting idea, do you?



Yes, this reply is more documenting the status quo and the problems
around it than it is about changing it. Personally I want to look into
stuff like paging before revisiting search in the hope that we have
accumulated some feedback and (better) ideas by then.

Thanks for the report, for joining a BSP & for (assisted) code diving!


Best regards

David Kalnischkies

Attachment: signature.asc
Description: PGP signature


Reply to: