[Yum-devel] [PATCH] 2nd fix for reading rpm logging from files, "" == raise IOError on pipe()

James Antill james at and.org
Tue Dec 22 20:32:06 UTC 2009


---
 yum/rpmtrans.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/yum/rpmtrans.py b/yum/rpmtrans.py
index 6fde5a8..f33f048 100644
--- a/yum/rpmtrans.py
+++ b/yum/rpmtrans.py
@@ -233,6 +233,8 @@ class RPMTransaction:
     def _scriptOutput(self):
         try:
             out = self._readpipe.read()
+            if not out:
+                return None
             return out
         except IOError:
             pass
-- 
1.6.5.2



More information about the Yum-devel mailing list