Fix Atom -> str breakage in WorldSet.write().
authorZac Medico <zmedico@gentoo.org>
Fri, 20 Jun 2008 22:31:17 +0000 (22:31 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 20 Jun 2008 22:31:17 +0000 (22:31 -0000)
svn path=/main/trunk/; revision=10749

pym/portage/sets/files.py

index b03a60e9b9872e0715aa7bae1769474804cba114..be356ec7eab0200d5d11e484c818ac8724d7a6ce 100644 (file)
@@ -185,7 +185,8 @@ class WorldSet(EditablePackageSet):
                return setname.startswith(SETPREFIX)
 
        def write(self):
-               write_atomic(self._filename, "\n".join(sorted(self._atoms))+"\n")
+               write_atomic(self._filename,
+                       "".join(sorted("%s\n" % x for x in self._atoms)))
                write_atomic(self._filename2, "\n".join(sorted(self._nonatoms))+"\n")
        
        def load(self):