summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-09-10 00:08:39 -0700
committerZac Medico <zmedico@gentoo.org>2010-09-10 00:08:39 -0700
commitca0d02df899da78df1f2343a17ce9f340978b190 (patch)
treebf8084c8731eb71811149cd5e4eec02085c46ff2
parent9fcd0d0d5b6a9e75ebee680f3f9ff5cce867efe0 (diff)
downloadportage-ca0d02df899da78df1f2343a17ce9f340978b190.tar.gz
portage-ca0d02df899da78df1f2343a17ce9f340978b190.tar.bz2
portage-ca0d02df899da78df1f2343a17ce9f340978b190.zip
Make ebuild-ipc.py display EOFError if no data is read from the
pipe.
-rwxr-xr-xbin/ebuild-ipc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ebuild-ipc.py b/bin/ebuild-ipc.py
index 37659e96e..5569a24b5 100755
--- a/bin/ebuild-ipc.py
+++ b/bin/ebuild-ipc.py
@@ -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)