In config._expandLicenseToken(), make sure traversed_groups is only initialized
authorZac Medico <zmedico@gentoo.org>
Sat, 30 Jan 2010 14:26:38 +0000 (14:26 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 30 Jan 2010 14:26:38 +0000 (14:26 -0000)
when appropriate.

svn path=/main/trunk/; revision=15288

pym/portage/__init__.py

index bfb834a85fef139ed9160f431aec9d33b750c305..5608cd93e34377f6be34c2cfe89ff815099b66a4 100644 (file)
@@ -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: