Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 162722 Details for
Bug 234478
sys-apps/portage-2.2_rc7 KeyError when ACCEPT_LICENSE is set
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix the KeyError
keyerror_use.patch (text/plain), 840 bytes, created by
Zac Medico
on 2008-08-12 07:16:05 UTC
(
hide
)
Description:
fix the KeyError
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2008-08-12 07:16:05 UTC
Size:
840 bytes
patch
obsolete
>Index: pym/portage/__init__.py >=================================================================== >--- pym/portage/__init__.py (revision 11400) >+++ pym/portage/__init__.py (revision 11401) >@@ -2357,9 +2357,15 @@ > cpv_slot = "%s:%s" % (cpv, metadata["SLOT"]) > for atom in match_to_list(cpv_slot, cpdict.keys()): > acceptable_licenses.update(cpdict[atom]) >- license_struct = portage.dep.paren_reduce(metadata["LICENSE"]) >+ >+ license_str = metadata["LICENSE"] >+ if "?" in license_str: >+ use = metadata["USE"].split() >+ else: >+ use = [] >+ > license_struct = portage.dep.use_reduce( >- license_struct, uselist=metadata["USE"].split()) >+ portage.dep.paren_reduce(license_str), uselist=use) > license_struct = portage.dep.dep_opconvert(license_struct) > return self._getMaskedLicenses(license_struct, acceptable_licenses) >
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 234478
: 162722