In config._expandLicenseToken(), make sure traversed_groups is only initialized
authorZac Medico <zmedico@gentoo.org>
Tue, 2 Mar 2010 19:49:17 +0000 (19:49 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 2 Mar 2010 19:49:17 +0000 (19:49 -0000)
when appropriate. (trunk r15288)

svn path=/main/branches/2.1.7/; revision=15527

pym/portage/__init__.py

index 07189d94bf75530266f0e405d51c71465c3d1880..8f4ef455be75d09786c818d8cecddcd67b925ae2 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: