summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Luther <SebastianLuther@gmx.de>2010-07-23 12:36:08 +0200
committerZac Medico <zmedico@gentoo.org>2010-07-23 09:47:13 -0700
commit0298465c7952c721ab8799736fa05bce87578482 (patch)
tree1c50ae91a04e1f7470b59b70fc232bb019232672
parentMake atoms with wildcards work in package.mask and package.unmask (diff)
downloadportage-multirepo-0298465c7952c721ab8799736fa05bce87578482.tar.gz
portage-multirepo-0298465c7952c721ab8799736fa05bce87578482.tar.bz2
portage-multirepo-0298465c7952c721ab8799736fa05bce87578482.zip
Make atoms with wildcards work in package.license
-rw-r--r--pym/portage/package/ebuild/config.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/pym/portage/package/ebuild/config.py b/pym/portage/package/ebuild/config.py
index 3ba8cc31..2c92f154 100644
--- a/pym/portage/package/ebuild/config.py
+++ b/pym/portage/package/ebuild/config.py
@@ -1873,7 +1873,13 @@ class config(object):
@return: A list of licenses that have not been accepted.
"""
accept_license = self._accept_license
- cpdict = self._plicensedict.get(cpv_getkey(cpv), None)
+ cp = cpv_getkey(cpv)
+ c, p = catsplit(cp)
+ cpdict = {}
+ cpdict.update(self._plicensedict.get("*/*", {}))
+ cpdict.update(self._plicensedict.get(c+"/*", {}))
+ cpdict.update(self._plicensedict.get("*/"+p, {}))
+ cpdict.update(self._plicensedict.get(cp, {}))
if cpdict:
accept_license = list(self._accept_license)
cpv_slot = "%s:%s" % (cpv, metadata["SLOT"])