[entropy.db] _migrateBaseinfoExtrainfo: make sure tables exist before running the query

This commit is contained in:
Fabio Erculiani
2012-03-02 17:16:42 +01:00
parent a09063da99
commit 21dcdcc636
+10
View File
@@ -5909,6 +5909,16 @@ class EntropyRepository(EntropyRepositoryBase):
return
if self._isBaseinfoExtrainfo2010():
return
if not self._doesTableExist("baseinfo"):
return
if not self._doesTableExist("extrainfo"):
return
if not self._doesTableExist("licenses"):
return
if not self._doesTableExist("categories"):
return
if not self._doesTableExist("flags"):
return
mytxt = "%s: [%s] %s" % (
bold(_("ATTENTION")),