Bug 197144

Summary: hdr['CHANGELOGTIME'] is an int instead of a list iff there is one changelog entry
Product: Red Hat Enterprise Linux 4 Reporter: Mike Bonnet <mikeb>
Component: rpmAssignee: Paul Nasrat <nobody+pnasrat>
Status: CLOSED ERRATA QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: redhat-bugzilla
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2007-0315 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-05-01 22:52:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mike Bonnet 2006-06-28 20:09:49 UTC
Description of problem:
If the changelog for an rpm contains exaactly one entry, the 'CHANGELOGTIME'
field in the dict returned by rpm.ts().hdrFromFdno() contains an int, instead of
a list containing a single int.  This is inconsistent with the other CHANGELOG*
fields.

Version-Release number of selected component (if applicable):
rpm-4.3.3-17_nonptl

How reproducible:
Always

Steps to Reproduce:
import rpm
f = file('/path/to/rpm-with-one-changelog-entry.rpm')
hdr = rpm.ts().hdrFromFdno(f.fileno())
f.close()
print type(hdr['CHANGELOGTIME'])
 
Actual results:
<type 'int'>

Expected results:
<type 'list'>

Additional info:

Comment 11 Red Hat Bugzilla 2007-05-01 22:52:27 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2007-0315.html