diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-08-12 22:08:56 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-08-12 22:08:56 -0700 |
commit | 15e1a041ddd6bdbc6dc30b350e16c864f8d4c334 (patch) | |
tree | b610acace1e39295f7489abf88f9c8d8cb067bd6 /bin | |
parent | 6451c6cbde1fa91cf15fa03f79bfbd421329ba2c (diff) | |
download | portage-15e1a041ddd6bdbc6dc30b350e16c864f8d4c334.tar.gz portage-15e1a041ddd6bdbc6dc30b350e16c864f8d4c334.tar.bz2 portage-15e1a041ddd6bdbc6dc30b350e16c864f8d4c334.zip |
Make IpcDaemonTestCase demonstrate an EbuildIpcDaemon based
replacement for EBUILD_EXIT_STATUS_FILE.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ebuild-ipc.py | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/bin/ebuild-ipc.py b/bin/ebuild-ipc.py index 2edd66559..761e07a2a 100755 --- a/bin/ebuild-ipc.py +++ b/bin/ebuild-ipc.py @@ -51,18 +51,17 @@ class EbuildIpc(object): output_file.flush() events = select.select([input_file], [], []) - if input_file in events[0]: - reply = pickle.load(input_file) - else: - reply = None - + reply = pickle.load(input_file) output_file.close() input_file.close() - if reply == 'OK': - rval = os.EX_OK - else: - rval = 1 + (out, err, rval) = reply + + if out: + portage.util.writemsg_stdout(out, noiselevel=-1) + + if err: + portage.util.writemsg(out, noiselevel=-1) return rval |