Make sure self._allowed_keys are sorted in the table create statement. They
authorZac Medico <zmedico@gentoo.org>
Fri, 25 Sep 2009 18:04:22 +0000 (18:04 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 25 Sep 2009 18:04:22 +0000 (18:04 -0000)
already are sorted, but do it explicitly here for clarity.

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

pym/portage/cache/sqlite.py

index 1ac6f1ffee49606d4089374042ae4d851ddfbf1a..0c23a78ae37239e8278fc39a94ec7bad6f6ec2b5 100644 (file)
@@ -103,7 +103,7 @@ class database(fs_template.FsBased):
                self._db_table["packages"]["create"] = " ".join(create_statement)
                self._db_table["packages"]["columns"] = \
                        self._db_table["packages"]["internal_columns"] + \
-                       self._allowed_keys
+                       sorted(self._allowed_keys)
 
                cursor = self._db_cursor
                for k, v in self._db_table.items():