[Aptitude-devel] Bug#402454: aptitude: ~O definition and behaviour
Axel Beckert
abe at debian.org
Wed Jan 9 01:43:32 UTC 2013
clone 402454 -1
retitle 402454 aptitude: Definition of ~O should mention virtual and configured but removed packages
severity 402454 minor
retitle -1 aptitude: ~O should not match any virtual package at least
severity -1 wishlist
kthxbye
Hi,
Osamu Aoki wrote:
> Package: aptitude
> Version: 0.4.4-1
> Severity: normal
>
> Although documentation say:
> |~Oorigin
> |
> | Matches package versions whose origin matches the regular expression
> | origin. For instance, “!~Odebian” will find any unofficial packages
> | on your system (packages not from the Debian archive).
>
> it seems it matches all packages which can be found in the active
> downloadeded package list.
Not sure what you mean with "in the active downloadeded package list".
At least I can reproduce that it lists all virtual packages as well as
all configured, but not removed packages which are no more in the
archive.
So "aptitude search '!~Odebian !~v !~c'" does what I'd have expected
without thinking much about how patterns work in detail.
> Thus “!~Odebian” will also find virtual packages and obsolete packages which
> is no longer found in the origins when used along aptitude search.
Exactly.
> I would suggest following instead:
> |~Oorigin
> |
> | Matches non-virtual package versions whose origin can be traced to
> | the regular expression origin using active /etc/apt/sources.list.
I'll take that as suggestions for a behaviour change. I clone the bug
accordingly, because the "non-virtual" would be wrong if it should
document the current state.
> | “!~v!~Odebian” will find non-virtual package versions which can not
> | trace their origin to debian using active /etc/apt/sources.list on
> | your system (packages not from the active Debian archive).
That part seems to be rather documenting the current state. I though
miss that ~c (remove but configured packages) are not mentioned,
because they're matched, too, in case they're no more in the archive.
Regards, Axel
--
,''`. | Axel Beckert <abe at debian.org>, http://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
`- | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5
More information about the Aptitude-devel
mailing list