Stop swallowing IOError and TypeError exceptions in portdbapi.gvisible(). Write...
authorZac Medico <zmedico@gentoo.org>
Sat, 18 Mar 2006 22:40:42 +0000 (22:40 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 18 Mar 2006 22:40:42 +0000 (22:40 -0000)
svn path=/main/trunk/; revision=2945

pym/portage.py

index d713c429b9f666fee7c524961415429345ff56e3..b9efd3bc876de29ab1bb90e660101b7f6cca6d57 100644 (file)
@@ -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"