Make ebuild-ipc.py suppress IOError just like it does for EOFError
authorZac Medico <zmedico@gentoo.org>
Fri, 10 Sep 2010 07:26:25 +0000 (00:26 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 10 Sep 2010 07:26:25 +0000 (00:26 -0700)
when the buffer is non-empty.

bin/ebuild-ipc.py

index 21e5647f3919ef246b953cc8c002b828d8a72880..59ff735c91eb6ebed1eac92c124eeb1ad6549ccb 100755 (executable)
@@ -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