[entropy.db] EntropyRepository._sanitizeDependsTable: use proper sql table (temp or non-temp)

This commit is contained in:
Fabio Erculiani
2010-07-24 17:08:22 +02:00
parent 5a1e38019f
commit 41c0a7cadc
+4 -2
View File
@@ -4781,9 +4781,11 @@ class EntropyRepository(EntropyRepositoryBase):
self.__clearLiveCache("_doesTableExist")
def _sanitizeDependsTable(self):
table_name = self._getReverseDependenciesTable()
self._cursor().execute("""
DELETE FROM dependstable where iddependency = -1
""")
DELETE FROM %s where iddependency = -1
""" % (table_name,))
self.__clearLiveCache("taintReverseDependenciesMetadata")
self.commitChanges()
def _isDependsTableSane(self):