[Aptitude-devel] Bug#691531: Bug#691531: aptitude: search query ?any-version(~Atesting) doesn't work as expected

Daniel Hartwig mandyke at gmail.com
Sat Oct 27 04:36:28 UTC 2012


Control: tags -1 + confirmed

On 27 October 2012 04:10, Samuel Bronson <naesten at gmail.com> wrote:
> My understanding is that ?any-version(<pattern>) is supposed to match
> *all* versions of any package which has *any* version matching
> <pattern>, but this is not what I've been getting; for example:

That is the description of “?widen” (match all versions), not
“?any-version” (match packages).  These are similar, the subtle
difference may sometimes impact the results of combining search terms,
though it should not in this case:

>
> naesten at hydrogen:~/hacking% aptitude versions '?exact-name(apt)'
> i A 0.9.7.5                                       testing                   990
> p A 0.9.7.6                                       unstable                  500
> naesten at hydrogen:~/hacking% aptitude versions '?exact-name(apt)?any-version(~Atesting)'
> Package apt:
> i A 0.9.7.5                                       testing                   990
>
> I would expect to get the same results for both queries (there will
> always be a version of "apt" in testing, right?), but I do not.

so I agree that there is a bug here.  Note that “?widen(~Atesting)”
achieves the desired result.

Thanks for the report.



More information about the Aptitude-devel mailing list