summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-07-10 09:08:39 +0000
committerZac Medico <zmedico@gentoo.org>2008-07-10 09:08:39 +0000
commitd23d16859ffb1bc728d481cd9616314c72221494 (patch)
tree48783c647f0a3a202c932a331cf3ba82f1a4b7a4
parent906548f973148ef3b6df42d51df8f43d023bcf10 (diff)
downloadportage-d23d16859ffb1bc728d481cd9616314c72221494.tar.gz
portage-d23d16859ffb1bc728d481cd9616314c72221494.tar.bz2
portage-d23d16859ffb1bc728d481cd9616314c72221494.zip
Bug #231382 - If the open() call in getconfig() raises an unexpected IOError,
write a message to stderr showing the exact call that failed, including the path of the file, in order to aid in debugging. svn path=/main/trunk/; revision=11010
-rw-r--r--pym/portage/util.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pym/portage/util.py b/pym/portage/util.py
index 5ae3cc1f3..f6cd68457 100644
--- a/pym/portage/util.py
+++ b/pym/portage/util.py
@@ -334,6 +334,7 @@ def getconfig(mycfg, tolerant=0, allow_sourcing=False, expand=True):
if e.errno == PermissionDenied.errno:
raise PermissionDenied(mycfg)
if e.errno != errno.ENOENT:
+ writemsg("open('%s', 'r'): %s\n" % (mycfg, e), noiselevel=-1)
raise
return None
try: