From d23d16859ffb1bc728d481cd9616314c72221494 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 10 Jul 2008 09:08:39 +0000 Subject: 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 --- pym/portage/util.py | 1 + 1 file changed, 1 insertion(+) (limited to 'pym') 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: -- cgit v1.2.3-1-g7c22