Make ebuild-ipc.py display EOFError if no data is read from the
authorZac Medico <zmedico@gentoo.org>
Fri, 10 Sep 2010 07:08:39 +0000 (00:08 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 10 Sep 2010 07:08:39 +0000 (00:08 -0700)
pipe.

bin/ebuild-ipc.py

index 37659e96e1bdbeee91ce66266ed09d1f241a00c7..5569a24b581c4f2ec8ff3e6c6de2349678fa88f5 100755 (executable)
@@ -89,8 +89,8 @@ class EbuildIpc(object):
                try:
                        buf.fromfile(input_file, self._BUFSIZE)
                except EOFError as e:
-                       #portage.util.writemsg("%s\n" % (e,), noiselevel=-1)
-                       pass
+                       if not buf:
+                               portage.util.writemsg("%s\n" % (e,), noiselevel=-1)
                except IOError as e:
                        portage.util.writemsg("%s\n" % (e,), noiselevel=-1)