Bug 113387 - rpm 4.3 returns None rather than [] for rpm.RPMTAG_FILENAMES
Summary: rpm 4.3 returns None rather than [] for rpm.RPMTAG_FILENAMES
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: rpm-python
Version: 1.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks: 113277
TreeView+ depends on / blocked
 
Reported: 2004-01-13 14:35 UTC by Paul Nasrat
Modified: 2007-04-18 17:01 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-01-14 16:25:07 UTC
Embargoed:


Attachments (Terms of Use)

Description Paul Nasrat 2004-01-13 14:35:15 UTC
Description of problem:

rpm 4.3 no longer returns [] for RPMTAG_FILENAMES, returning None
instead.  This regression breaks anaconda packages.py here:

        totalFiles = totalFiles + len(p[rpm.RPMTAG_FILENAMES])


Version-Release number of selected component (if applicable):

rpm 4.3

How reproducible:

always

Steps to Reproduce:
1. run python fragment

  
import rpm
import os
 
ts = rpm.TransactionSet()
fd=os.open("basesystem-8.0-2.noarch.rpm", os.O_RDONLY)
hdr=ts.hdrFromFdno(fd)
  
print hdr[rpm.RPMTAG_BASENAMES]


Actual results:

None

Expected results:

[]

Additional info:

Comment 1 Jeremy Katz 2004-01-13 20:44:55 UTC
These shouldn't really be empty lists anyway I don't think...

Comment 2 Jeff Johnson 2004-01-14 16:25:07 UTC
Fixed in CVS, should be in rpm-4.3-0.8 when built, ditto rpm-4.2.2.

Thanks for reproducer.

Comment 3 Tom Diehl 2004-01-14 17:00:40 UTC
Do you have an idea when rpm be 4.3-0.8 will be built?


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