worker.py
[email protected] Fri, 1 Mar 2013 14:35:23 +0000 (UTC)
| Newsgroups | gmane.linux.rpm.metadata |
|---|---|
| Message-ID | <[email protected]> |
worker.py | 2 ++ 1 file changed, 2 insertions(+) New commits: commit 0dd44e60a7cd00b4339e999569d5536112eb2253 Author: Zdenek Pavlas <[email protected]> Date: Fri Mar 1 12:08:59 2013 +0100 worker.py: turn off stdout buffering Reader either uses readline() or read(size). If only partial data are available, reader blocks. Writer may then block on stderr. diff --git a/worker.py b/worker.py index fe6758f..b67b5bd 100755 --- a/worker.py +++ b/worker.py @@ -60,6 +60,8 @@ def main(args): v = None globalopts[k] = v + # turn off buffering on stdout + sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0) reldir = external_data['_reldir'] ts = rpmUtils.transaction.initReadOnlyTransaction()