summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-01-30 14:26:38 +0000
committerZac Medico <zmedico@gentoo.org>2010-01-30 14:26:38 +0000
commit6bb8256f0505ed2c5437ca7733f656ca57bb4ac5 (patch)
tree7ae0449b02e1845bde81c566dc194df6eac478e5
parente79df2d43ccb5f5ea8a63a8b58797e863fbdd21d (diff)
downloadportage-6bb8256f0505ed2c5437ca7733f656ca57bb4ac5.tar.gz
portage-6bb8256f0505ed2c5437ca7733f656ca57bb4ac5.tar.bz2
portage-6bb8256f0505ed2c5437ca7733f656ca57bb4ac5.zip
In config._expandLicenseToken(), make sure traversed_groups is only initialized
when appropriate. svn path=/main/trunk/; revision=15288
-rw-r--r--pym/portage/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index bfb834a85..5608cd93e 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -2292,7 +2292,7 @@ class config(object):
rValue.append(token)
return rValue
group_name = license_name[1:]
- if not traversed_groups:
+ if traversed_groups is None:
traversed_groups = set()
license_group = self._license_groups.get(group_name)
if group_name in traversed_groups: