diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-09-20 16:34:08 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-09-20 16:34:08 -0700 |
commit | d6cf1be2bc46d422a8a9eff8a7d16fba346f03ce (patch) | |
tree | 89bf5dcebd5a756935587d9f11a43ae987b1a109 | |
parent | 8ddff22917b89f4377eedb8065a7ee73e0561517 (diff) | |
download | portage-d6cf1be2bc46d422a8a9eff8a7d16fba346f03ce.tar.gz portage-d6cf1be2bc46d422a8a9eff8a7d16fba346f03ce.tar.bz2 portage-d6cf1be2bc46d422a8a9eff8a7d16fba346f03ce.zip |
Make ebuild-ipc show an additional 'read failed' message if the buffer
happens to be empty after the read loop.
-rwxr-xr-x | bin/ebuild-ipc.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/ebuild-ipc.py b/bin/ebuild-ipc.py index 76e64329b..e353dc4df 100755 --- a/bin/ebuild-ipc.py +++ b/bin/ebuild-ipc.py @@ -159,7 +159,14 @@ class EbuildIpc(object): rval = 2 - if buf: + if not buf: + + portage.util.writemsg_level( + "ebuild-ipc: %s\n" % \ + (portage.localization._('read failed'),), + level=logging.ERROR, noiselevel=-1) + + else: try: reply = pickle.loads(buf.tostring()) |