summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/util.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/portage/util.py b/pym/portage/util.py
index 83d3fb430..39abcd81e 100644
--- a/pym/portage/util.py
+++ b/pym/portage/util.py
@@ -280,7 +280,9 @@ def grablines(myfilename,recursive=0):
myfile = open(myfilename, "r")
mylines = myfile.readlines()
myfile.close()
- except IOError:
+ except IOError, e:
+ if e.errno == PermissionDenied.errno:
+ raise PermissionDenied(myfilename)
pass
return mylines