Bug 113387

Summary: rpm 4.3 returns None rather than [] for rpm.RPMTAG_FILENAMES
Product: [Retired] Red Hat Raw Hide Reporter: Paul Nasrat <nobody+pnasrat>
Component: rpm-pythonAssignee: Jeff Johnson <jbj>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: katzj, me
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-01-14 16:25:07 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:
Bug Depends On:    
Bug Blocks: 113277    

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?