Entropy/EquoInterface:

- filterSatisfiedDependencies(): give up if the repo db is broken


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2717 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
lxnay
2008-12-04 22:23:35 +00:00
parent 6c3fe1e920
commit 0bcc693bfc

View File

@@ -2051,9 +2051,14 @@ class EquoInterface(TextInterface):
repoMatch = self.atomMatch(dependency)
if repoMatch[0] != -1:
dbconn = self.openRepositoryDatabase(repoMatch[1])
repo_pkgver = dbconn.retrieveVersion(repoMatch[0])
repo_pkgtag = dbconn.retrieveVersionTag(repoMatch[0])
repo_pkgrev = dbconn.retrieveRevision(repoMatch[0])
try:
repo_pkgver = dbconn.retrieveVersion(repoMatch[0])
repo_pkgtag = dbconn.retrieveVersionTag(repoMatch[0])
repo_pkgrev = dbconn.retrieveRevision(repoMatch[0])
except self.dbapi2.InterfaceError:
# package entry is broken
unsatisfiedDeps.add(dependency)
continue
else:
# dependency does not exist in our database
unsatisfiedDeps.add(dependency)