summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-03-25 07:15:46 +0000
committerZac Medico <zmedico@gentoo.org>2007-03-25 07:15:46 +0000
commitd246aa2f8029d4b430a3d7702f94aabb51f1f044 (patch)
treec299328e8bdd59ace2733d4e7a726f1310458880 /pym
parentbabc86194ede8ade831848fa6347e73022986f99 (diff)
downloadportage-d246aa2f8029d4b430a3d7702f94aabb51f1f044.tar.gz
portage-d246aa2f8029d4b430a3d7702f94aabb51f1f044.tar.bz2
portage-d246aa2f8029d4b430a3d7702f94aabb51f1f044.zip
Do the "*" check as early as possible in config.getMissingLicenses().
svn path=/main/trunk/; revision=6282
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/__init__.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index a7ec412e5..07437cf20 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -1764,13 +1764,14 @@ class config:
@rtype: List
@return: A list of licenses that have not been accepted.
"""
+ if "*" in self._accept_license:
+ return []
+ acceptable_licenses = self._accept_license
cpdict = self._plicensedict.get(dep_getkey(cpv), None)
- acceptable_licenses = self._accept_license.copy()
if cpdict:
+ acceptable_licenses = self._accept_license.copy()
for atom in match_to_list(cpv, cpdict.keys()):
acceptable_licenses.update(cpdict[atom])
- if "*" in acceptable_licenses:
- return []
license_struct = portage.dep.paren_reduce(licenses)
license_struct = portage.dep.use_reduce(
license_struct, uselist=uselist)