summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-03-18 22:40:42 +0000
committerZac Medico <zmedico@gentoo.org>2006-03-18 22:40:42 +0000
commit5fa4464365d60f5d4def42e80c3718c0b142272c (patch)
treed074655ed6f48f7df631109183e6d90a643ba430
parent32121631d35d27e6f5133a825fa532012026954b (diff)
downloadportage-5fa4464365d60f5d4def42e80c3718c0b142272c.tar.gz
portage-5fa4464365d60f5d4def42e80c3718c0b142272c.tar.bz2
portage-5fa4464365d60f5d4def42e80c3718c0b142272c.zip
Stop swallowing IOError and TypeError exceptions in portdbapi.gvisible(). Write instances of PortageException to stderr. Thanks to marienz for reporting.
svn path=/main/trunk/; revision=2945
-rw-r--r--pym/portage.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/pym/portage.py b/pym/portage.py
index d713c429b..b9efd3bc8 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -5167,10 +5167,14 @@ class portdbapi(dbapi):
for mycpv in mylist:
#we need to update this next line when we have fully integrated the new db api
auxerr=0
+ keys = None
try:
keys, eapi = db["/"]["porttree"].dbapi.aux_get(mycpv, ["KEYWORDS", "EAPI"])
- except (KeyError,IOError,TypeError):
- continue
+ except KeyError:
+ pass
+ except PortageException, e:
+ writemsg("!!! Error: aux_get('%s', ['KEYWORDS', 'EAPI'])\n" % mycpv)
+ writemsg("!!! %s\n" % str(e))
if not keys:
# KEYWORDS=""
#print "!!! No KEYWORDS for "+str(mycpv)+" -- Untested Status"