improved reliability of retrieveDepends

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@948 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
(no author)
2007-12-27 21:26:44 +00:00
parent b545e7a1ad
commit 5749ad5ecb
4 changed files with 3 additions and 21 deletions
+3 -3
View File
@@ -428,7 +428,6 @@ class etpDatabase:
self.runTreeUpdatesActions(update_actions)
# store new actions
### FIXME: add support int reagent database --initialize
self.addRepositoryUpdatesActions(repository,update_actions)
# store new digest into database
self.setRepositoryUpdatesDigest(repository, portage_dirs_digest)
@@ -470,6 +469,7 @@ class etpDatabase:
for action in actions:
command = action.split()
if command[0] == "move":
print_warning(darkred(" * ")+bold("RUNNING: ")+red("action: %s" % (blue(action),)))
self.runTreeUpdatesMoveAction(command[1:])
@@ -2454,8 +2454,8 @@ class etpDatabase:
# sanity check on the table
sanity = self.isDependsTableSane()
if (not sanity):
return -2 # table does not exist or is broken, please regenerate and re-run
if (not sanity): # is empty, need generation
self.regenerateDependsTable(output = False)
self.cursor.execute('SELECT dependencies.idpackage FROM dependstable,dependencies WHERE dependstable.idpackage = (?) and dependstable.iddependency = dependencies.iddependency', (idpackage,))
result = self.fetchall2set(self.cursor.fetchall())