diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-08-12 22:33:56 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-08-12 22:33:56 -0700 |
commit | 536f928e82d494394a29db8512828477fe961ec5 (patch) | |
tree | 225ffb390c36b3147b758d1499b381cd64abd240 | |
parent | 15e1a041ddd6bdbc6dc30b350e16c864f8d4c334 (diff) | |
download | portage-536f928e82d494394a29db8512828477fe961ec5.tar.gz portage-536f928e82d494394a29db8512828477fe961ec5.tar.bz2 portage-536f928e82d494394a29db8512828477fe961ec5.zip |
Clean up a bit.
-rwxr-xr-x | bin/ebuild-ipc.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/bin/ebuild-ipc.py b/bin/ebuild-ipc.py index 761e07a2a..0d673701a 100755 --- a/bin/ebuild-ipc.py +++ b/bin/ebuild-ipc.py @@ -41,12 +41,9 @@ class EbuildIpc(object): portage.locks.unlockfile(lock_obj) def _communicate(self, args): - fifo_dir = os.environ['PORTAGE_BUILDDIR'] - ipc_in_fifo = os.path.join(fifo_dir, '.ipc_in') - ipc_out_fifo = os.path.join(fifo_dir, '.ipc_out') - input_fd = os.open(ipc_out_fifo, os.O_RDONLY|os.O_NONBLOCK) + input_fd = os.open(self.ipc_out_fifo, os.O_RDONLY|os.O_NONBLOCK) input_file = os.fdopen(input_fd, 'rb') - output_file = open(ipc_in_fifo, 'wb') + output_file = open(self.ipc_in_fifo, 'wb') pickle.dump(args, output_file) output_file.flush() @@ -61,7 +58,7 @@ class EbuildIpc(object): portage.util.writemsg_stdout(out, noiselevel=-1) if err: - portage.util.writemsg(out, noiselevel=-1) + portage.util.writemsg(err, noiselevel=-1) return rval |