From: Zac Medico Date: Thu, 10 Jul 2008 09:08:39 +0000 (-0000) Subject: Bug #231382 - If the open() call in getconfig() raises an unexpected IOError, X-Git-Tag: v2.2_rc2~134 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d23d16859ffb1bc728d481cd9616314c72221494;p=portage.git 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 --- 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: