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 939109 Details for
Bug 1142535
[regression] "rlJournalStart: Failed to initialize the journal. Bailing out..." on RHEL5
[?]
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]
patch
0001-check-.count-of-rpm.mi-objects-instead-of-relying-on.patch (text/plain), 1.71 KB, created by
Dan Callaghan
on 2014-09-19 07:22:02 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Dan Callaghan
Created:
2014-09-19 07:22:02 UTC
Size:
1.71 KB
patch
obsolete
>From 4044dc3906f623d635242b044eb209aec0de86ea Mon Sep 17 00:00:00 2001 >From: Dan Callaghan <dcallagh@redhat.com> >Date: Fri, 19 Sep 2014 16:33:09 +1000 >Subject: [PATCH] check .count() of rpm.mi objects instead of relying on bool > coercion > >Older versions of RPM (including the version in RHEL5 and earlier) did >not implement bool coercion for rpm.mi objects, they are always true >even if they contain no matches. len() is also not implemented. So we >need to check .count() before we can assume there are any matches. > >Bug: 1142535 >--- > src/python/journalling.py | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/src/python/journalling.py b/src/python/journalling.py >index b7ede6d..e404742 100755 >--- a/src/python/journalling.py >+++ b/src/python/journalling.py >@@ -296,7 +296,7 @@ class Journal(object): > return None > > testInfo = ts.dbMatch("name", package) >- if not testInfo: >+ if not testInfo.count(): > return None > > buildtime = time.gmtime(int(testInfo.next().format("%{BUILDTIME}"))) >@@ -384,7 +384,7 @@ class Journal(object): > ts = rpm.ts() > mi = ts.dbMatch("name", "beakerlib") > beakerlibRpmEl = newdoc.createElement("beakerlib_rpm") >- if mi: >+ if mi.count(): > beakerlib_rpm = mi.next() > beakerlibRpmCon = newdoc.createTextNode("%(name)s-%(version)s-%(release)s " % beakerlib_rpm) > else: >@@ -392,7 +392,7 @@ class Journal(object): > > mi = ts.dbMatch("name", "beakerlib-redhat") > beakerlibRedhatRpmEl = newdoc.createElement("beakerlib_redhat_rpm") >- if mi: >+ if mi.count(): > beakerlib_redhat_rpm = mi.next() > beakerlibRedhatRpmCon = newdoc.createTextNode("%(name)s-%(version)s-%(release)s " % beakerlib_redhat_rpm) > else: >-- >1.9.3 >
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 1142535
:
938333
|
939101
| 939109