[entropy.db] EntropyRepository.checksum: skip queries if baseinfo table does not exist

This commit is contained in:
Fabio Erculiani
2010-02-13 19:56:15 +01:00
parent a75c1a19b6
commit 2696d64395
+9
View File
@@ -6575,6 +6575,15 @@ class EntropyRepository(EntropyRepositoryPluginStore, TextInterface):
m = hashlib.md5()
if not self._doesTableExist("baseinfo"):
if strings:
m.update(const_convert_to_rawstring("~empty~"))
result = m.hexdigest()
else:
result = "~empty_db~"
self.live_cache[c_tup] = result[:]
return result
cur = self._cursor().execute("""
SELECT idpackage,atom,name,version,versiontag,
revision,branch,slot,etpapi,trigger FROM