summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 13c851ab0..e51934b76 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -4795,14 +4795,14 @@ class vardbapi(dbapi):
results = []
for x in wants:
myfn = self.root+VDB_PATH+"/"+str(mycpv)+"/"+str(x)
- if os.access(myfn,os.R_OK):
+ try:
myf = open(myfn, "r")
myd = myf.read()
myf.close()
myd = re.sub("[\n\r\t]+"," ",myd)
myd = re.sub(" +"," ",myd)
myd = string.strip(myd)
- else:
+ except (IOError, OSError):
myd = ""
results.append(myd)
if "EAPI" in wants: