- updated TODO

- improved dependstable reliability


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@937 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
(no author)
2007-12-25 14:08:48 +00:00
parent a4b5410e5d
commit c8f5bd0d07
2 changed files with 16 additions and 4 deletions

3
TODO
View File

@@ -2,12 +2,9 @@ TODO list:
- who pulls in libxcb?
- /usr/portage/profiles/updates support
- deps in profile?
- aspell deps & depends?
- use frozenset() where possible
- add gentoo pkg_* triggers logging
- Community repositories
- find a way to better handle real smartapps deps
- reduce size of packages.db.bz2
- remove binkeywords, not used
- add deptest check for every reagent run
- implement client db sanity check

View File

@@ -2994,7 +2994,22 @@ class etpDatabase:
status = self.cursor.fetchone()
if status:
return False
return True
# also check that dependenciesreference length matches dependstable length
self.cursor.execute('select count(*) from dependenciesreference')
dependenciesreference_count = self.cursor.fetchone()
self.cursor.execute('select count(*) from dependstable')
dependstable_count = self.cursor.fetchone()
if dependenciesreference_count and dependstable_count:
try:
if dependenciesreference_count[0] == dependstable_count[0]:
return True
else:
return False
except:
return False
return False
def createXpakTable(self):
self.cursor.execute('CREATE TABLE xpakdata ( idpackage INTEGER PRIMARY KEY, data BLOB );')