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 302148 Details for
Bug 427866
Yum exits with success even when RPMs cannot be installed
[?]
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]
Grab exit code from rpm transaction
yum-tsrun-result.patch (text/plain), 841 bytes, created by
Panu Matilainen
on 2008-04-11 17:12:16 UTC
(
hide
)
Description:
Grab exit code from rpm transaction
Filename:
MIME Type:
Creator:
Panu Matilainen
Created:
2008-04-11 17:12:16 UTC
Size:
841 bytes
patch
obsolete
>diff --git a/yum/__init__.py b/yum/__init__.py >index bef88cb..ebcd172 100644 >--- a/yum/__init__.py >+++ b/yum/__init__.py >@@ -773,7 +773,15 @@ class YumBase(depsolve.Depsolve): > self.plugins.run('pretrans') > > errors = self.ts.run(cb.callback, '') >- if errors: >+ # ts.run() exit codes are, hmm, "creative": None means all ok, empty >+ # list means some errors happened in the transaction and non-empty >+ # list that there were errors preventing the ts from starting... >+ if errors is None: >+ pass >+ elif len(errors) == 0: >+ errstring = _('Warning: errors occurred during transaction.') >+ raise Errors.YumBaseError, errstring >+ else: > errstring = '\n'.join(map(_tup2str, errors)) > raise Errors.YumBaseError, errstring >
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 427866
:
301756
| 302148