Fix WorldSelectedSet._load2() to always return a list instead of a
authorZac Medico <zmedico@gentoo.org>
Wed, 1 Sep 2010 05:31:24 +0000 (22:31 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 1 Sep 2010 05:31:24 +0000 (22:31 -0700)
set for nonatoms so that we don't trigger 'TypeError: can only
concatenate list (not "set") to list'.

pym/portage/_sets/files.py

index e880c1eff8a3c72c8318f44e9980ad20f23d2134..c474f1b5f9d892974ffc589135680bfff7004ab8 100644 (file)
@@ -291,7 +291,7 @@ class WorldSelectedSet(EditablePackageSet):
                        self._mtime2 = mtime
                        changed = True
                else:
-                       nonatoms = self._nonatoms
+                       nonatoms = list(self._nonatoms)
 
                return changed, nonatoms