summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-09-10 00:26:25 -0700
committerZac Medico <zmedico@gentoo.org>2010-09-10 00:26:25 -0700
commit7f9cfa125af3ec50f22a89cf6c63827e30861270 (patch)
tree32bf33402c5b3fd888c40e8d5d002c21be727944
parent1d1a085e9f20b9d4c8e926bcc081b66d1ac0ffa9 (diff)
downloadportage-7f9cfa125af3ec50f22a89cf6c63827e30861270.tar.gz
portage-7f9cfa125af3ec50f22a89cf6c63827e30861270.tar.bz2
portage-7f9cfa125af3ec50f22a89cf6c63827e30861270.zip
Make ebuild-ipc.py suppress IOError just like it does for EOFError
when the buffer is non-empty.
-rwxr-xr-xbin/ebuild-ipc.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/ebuild-ipc.py b/bin/ebuild-ipc.py
index 21e5647f3..59ff735c9 100755
--- a/bin/ebuild-ipc.py
+++ b/bin/ebuild-ipc.py
@@ -88,11 +88,9 @@ class EbuildIpc(object):
buf = array.array('B')
try:
buf.fromfile(input_file, self._BUFSIZE)
- except EOFError as e:
+ except (EOFError, IOError) as e:
if not buf:
portage.util.writemsg("%s\n" % (e,), noiselevel=-1)
- except IOError as e:
- portage.util.writemsg("%s\n" % (e,), noiselevel=-1)
rval = 2