[Yum-devel] [PATCH 1/2] Fix no script output from transaction, BZ 554462

James Antill james at and.org
Mon Jan 18 20:58:07 UTC 2010


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

diff --git a/yum/rpmtrans.py b/yum/rpmtrans.py
index f33f048..0340153 100644
--- a/yum/rpmtrans.py
+++ b/yum/rpmtrans.py
@@ -209,7 +209,8 @@ class RPMTransaction:
         io_r = tempfile.NamedTemporaryFile()
         self._readpipe = io_r
         self._writepipe = open(io_r.name, 'w+b')
-        self.base.ts.scriptFd = self._writepipe.fileno()
+        # This is dark magic, it really needs to be "base.ts.ts".
+        self.base.ts.ts.scriptFd = self._writepipe.fileno()
         rpmverbosity = {'critical' : 'crit',
                         'emergency' : 'emerg',
                         'error' : 'err',
-- 
1.6.5.2



More information about the Yum-devel mailing list