Sort the atoms when writing the world file.
authorZac Medico <zmedico@gentoo.org>
Mon, 16 Jul 2007 18:33:36 +0000 (18:33 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 16 Jul 2007 18:33:36 +0000 (18:33 -0000)
svn path=/main/trunk/; revision=7285

pym/portage/sets/files.py

index 7fa5fb24d6d79db3c470f11811e11de2d16e3919..99d30d8303b2e99e9e0d081b4c995f2578a23163 100644 (file)
@@ -37,7 +37,7 @@ class StaticFileSet(EditablePackageSet):
                                setattr(self, key, " ".join(value))
        
        def write(self):
-               write_atomic(self._filename, "\n".join(self._atoms)+"\n")
+               write_atomic(self._filename, "\n".join(sorted(self._atoms))+"\n")
        
        def load(self):
                try: