Summary: | app-portage/gentoolkit - "equery m git" shows one of 3 packages on each run, instead of reporting "Ambiguous package name." like "equery m glib" does. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | flippynelle <flippynelle> |
Component: | Current packages | Assignee: | Portage Tools Team <tools-portage> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | flippynelle, pacho |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=691798 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | "equery m git" collision fixxage |
Description
flippynelle
2020-12-01 15:54:57 UTC
Correction, this block: 2. this one is correct: # equery m glib m glib dev-haskell/glib m glib dev-libs/glib !!! Ambiguous package name. Choose from: dev-haskell/glib dev-libs/glib Should've been this: 2. this one is correct: # equery m glib m glib dev-haskell/glib n glib dev-haskell/glib m glib dev-libs/glib n glib dev-libs/glib !!! Ambiguous package name. Choose from: dev-haskell/glib dev-libs/glib Created attachment 676210 [details, diff]
"equery m git" collision fixxage
I'll be using this temp-patch until an official one is made, since I cannot wait until then.
Results:
# equery m git
!!! Ambiguous package name. Choose from:
dev-haskell/git
acct-group/git
dev-vcs/git
acct-user/git
dev-ruby/git
# equery m git
!!! Ambiguous package name. Choose from:
dev-vcs/git
acct-group/git
acct-user/git
dev-ruby/git
dev-haskell/git
It happens to other equery commands as equery uses too (In reply to flippynelle from comment #1) > 2. this one is correct: > # equery m glib > m glib dev-haskell/glib > m glib dev-libs/glib > !!! Ambiguous package name. Choose from: > dev-haskell/glib > dev-libs/glib > I think this is a really assinine response from gentoolkit. When more than one package matches the query, all results should be displayed. Another way to fix this would be to get rid of dev-haskell/* from the main gentoo repo, and stick it in an overlay. (In reply to cyrillic from comment #4) > (In reply to flippynelle from comment #1) > > 2. this one is correct: > > # equery m glib > > m glib dev-haskell/glib > > m glib dev-libs/glib > > !!! Ambiguous package name. Choose from: > > dev-haskell/glib > > dev-libs/glib > > > > I think this is a really assinine response from gentoolkit. When more than > one package matches the query, all results should be displayed. > > Another way to fix this would be to get rid of dev-haskell/* from the main > gentoo repo, and stick it in an overlay. Pacho, the problem is with changes in portage code that spits out the "!!! Ambiguous package name. Choose from:..." stuff. @zmedico, could cpv_expand get an extra parameter (default False) that gentoolkit could pass to kill the Ambiguos error and return all matches instead? |