Bug 197144 - hdr['CHANGELOGTIME'] is an int instead of a list iff there is one changelog entry
Summary: hdr['CHANGELOGTIME'] is an int instead of a list iff there is one changelog e...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: rpm
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Paul Nasrat
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-06-28 20:09 UTC by Mike Bonnet
Modified: 2007-11-30 22:07 UTC (History)
1 user (show)

Fixed In Version: RHBA-2007-0315
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-05-01 22:52:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2007:0315 0 normal SHIPPED_LIVE RPM bug fix update 2007-04-30 14:22:37 UTC

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



Note You need to log in before you can comment on or make changes to this bug.