Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 603935 Details for
Bug 615763
yum ignores posttrans or kills error messages on posttrans??
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Take advantage of rpm >= 4.10 script start/stop callbacks
yum-script-start-stop.patch (text/plain), 1.74 KB, created by
Panu Matilainen
on 2012-08-13 09:42:17 UTC
(
hide
)
Description:
Take advantage of rpm >= 4.10 script start/stop callbacks
Filename:
MIME Type:
Creator:
Panu Matilainen
Created:
2012-08-13 09:42:17 UTC
Size:
1.74 KB
patch
obsolete
>commit a55ed548bc0e275dab3066868f4c3ba88f08e25b >Author: Panu Matilainen <pmatilai@laiskiainen.org> >Date: Mon Aug 13 12:05:42 2012 +0300 > > Minimally teach yum about rpm >= 4.10 scriptlet start and stop callbacks > > Rpm >= 4.10 issues callbacks on all scriptlet start and stop events. > This would allow more precise logging by script type etc, but > compatibility would get more complicated. For now, just make sure all > scriptlet output gets actually logged. BZ 615763. > >diff --git a/yum/rpmtrans.py b/yum/rpmtrans.py >index 24a1f9e..61c9a0e 100644 >--- a/yum/rpmtrans.py >+++ b/yum/rpmtrans.py >@@ -475,6 +475,11 @@ class RPMTransaction: > # SCRIPT_ERROR is only in rpm >= 4.6.0 > elif hasattr(rpm, "RPMCALLBACK_SCRIPT_ERROR") and what == rpm.RPMCALLBACK_SCRIPT_ERROR: > self._scriptError(bytes, total, h) >+ # SCRIPT_START and SCRIPT_STOP are only in rpm >= 4.10 >+ elif hasattr(rpm, "RPMCALLBACK_SCRIPT_START") and what == rpm.RPMCALLBACK_SCRIPT_START: >+ self._scriptStart(bytes, total, h); >+ elif hasattr(rpm, "RPMCALLBACK_SCRIPT_STOP") and what == rpm.RPMCALLBACK_SCRIPT_STOP: >+ self._scriptStop(bytes, total, h); > > > def _transStart(self, bytes, total, h): >@@ -633,6 +638,13 @@ class RPMTransaction: > self.display.errorlog(msg) > # FIXME - what else should we do here? raise a failure and abort? > >+ def _scriptStart(self, bytes, total, h): >+ pass >+ >+ def _scriptStop(self, bytes, total, h): >+ name, txmbr = self._getTxmbr(h) >+ self._scriptout(txmbr or name) >+ > def verify_txmbr(self, txmbr, count): > " Callback for post transaction when we are in verifyTransaction(). " > if not hasattr(self.display, 'verify_txmbr'):
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 615763
:
432707
| 603935