Summary: | app-portage/gentoolkit-0.2.1_pre4 - equery does not support wildcards correctly? | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Alon Bar-Lev (RETIRED) <alonbl> |
Component: | Tools | Assignee: | Portage Tools Team <tools-portage> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Alon Bar-Lev (RETIRED)
2005-07-04 01:22:07 UTC
There are two different things to note here. Firstly, equery list treats its arguments as a regexp, so gentoo* means "gento" followed by any amount of o's. To get what you want, you'd search for "gentoo.*". The reason "*" without anything else does work - assuming I recall correctly - is because this is treated as a special case. Secondly, equery doesn't look for versions properly. When you search for "gentoo*", it looks for packages of which the name matches gentoo*, with any version number. However, it doesn't actually search for .*/gentoo*-<version number>, it simply searches for .*/gentoo*-.* without paying attention to what that which follows - actually is. I believe I've seen that second part reported before, but I can't seem to find it now. Thanks! I would have never guessed that it uses regexp and not wildcards... Please consider adding a note in the usage... "pkgspec is regexp" According to bug #77113 the idea is that regexes won't be used (or not by default, at least) in some future version. That'd work too, no? :) Hmmm... RegExp was super!!! I hope it will be supported... :) If not... I can always use the grep approach... :) |