Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 676210 Details for
Bug 757897
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.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
"equery m git" collision fixxage
equerymgit_2.patch (text/plain), 2.17 KB, created by
flippynelle
on 2020-12-02 13:39:15 UTC
(
hide
)
Description:
"equery m git" collision fixxage
Filename:
MIME Type:
Creator:
flippynelle
Created:
2020-12-02 13:39:15 UTC
Size:
2.17 KB
patch
obsolete
>without this patch: >see https://bugs.gentoo.org/757897 >with this patch: ># equery m glib >!!! Ambiguous package name. Choose from: > dev-haskell/glib > dev-libs/glib ># 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 > > >Index: /var/tmp/portage/sys-apps/portage-3.0.11-r1/work/portage-3.0.11/lib/portage/dbapi/cpv_expand.py >=================================================================== >--- .orig/lib/portage/dbapi/cpv_expand.py >+++ mod/lib/portage/dbapi/cpv_expand.py >@@ -67,22 +67,23 @@ def cpv_expand(mycpv, mydb=None, use_cac > if mydb.cp_list(x+"/"+myp,use_cache=use_cache): > matches.append(x+"/"+myp) > if len(matches) > 1: >- virtual_name_collision = False >- if len(matches) > 1: >- for x in matches: >- if not x.startswith(("acct-group/", "acct-user/", "virtual/")): >- # Assume that the non-virtual is desired. This helps >- # avoid the ValueError for invalid deps that come from >- # installed packages (during reverse blocker detection, >- # for example). >- mykey = x >- else: >- virtual_name_collision = True >- if not virtual_name_collision: >- # AmbiguousPackageName inherits from ValueError, >- # for backward compatibility with calling code >- # that already handles ValueError. >- raise AmbiguousPackageName(matches) >+ #more than 1 match! >+ assert None == mykey >+ for x in matches: >+ if not x.startswith(("acct-group/", "acct-user/", "virtual/")): >+ # Assume that the non-virtual is desired. This helps >+ # avoid the ValueError for invalid deps that come from >+ # installed packages (during reverse blocker detection, >+ # for example). >+ if None != mykey: >+ #if more than 1 non-virtuals then collision! >+ #eg. try 'equery m git' >+ # >+ # AmbiguousPackageName inherits from ValueError, >+ # for backward compatibility with calling code >+ # that already handles ValueError. >+ raise AmbiguousPackageName(matches) >+ mykey = x > elif matches: > mykey=matches[0] >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 757897
: 676210