summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-07-31 02:11:14 +0000
committerZac Medico <zmedico@gentoo.org>2006-07-31 02:11:14 +0000
commitbf3d1af0590f2b556e4e7fe673786a8f9d00f07d (patch)
tree8d7e08e29d8707b86f73412755076239020a03d8
parent00c77b186e0c24a1ad0b2335b982053221bb8d36 (diff)
downloadportage-bf3d1af0590f2b556e4e7fe673786a8f9d00f07d.tar.gz
portage-bf3d1af0590f2b556e4e7fe673786a8f9d00f07d.tar.bz2
portage-bf3d1af0590f2b556e4e7fe673786a8f9d00f07d.zip
Only ignore ENOENT in getconfig() so that more important errors don't go unnoticed.
svn path=/main/trunk/; revision=4052
-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 bdd934ec3..d318f80c2 100644
--- a/pym/portage_util.py
+++ b/pym/portage_util.py
@@ -231,7 +231,9 @@ def getconfig(mycfg,tolerant=0,allow_sourcing=False):
mykeys={}
try:
f=open(mycfg,'r')
- except IOError:
+ except IOError, e:
+ if e.errno != errno.ENOENT:
+ raise
return None
try:
lex=shlex.shlex(f)