Red Hat Bugzilla – Bug 112794
[RFE] [rpm-python] Return  for header types that return lists
Last modified: 2007-04-18 13:00:54 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1)
Description of problem:
Second part of bug
Return empty list for header tags that can return lists.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
See test attachment
Actual Results: Returns None
Expected Results: Returns 
Created attachment 96737 [details]
Test case for bindings, I'm going to check in working patch against HEAD, but
would be grateful for sanity check.
Hmmm, this looks fishy:
vsflags = ts.setVSFlags(~(rpm._RPMVSF_NOSIGNATURES))
I don't think you should do either.
If you *must* disable signature checking, then
is all that is needed.
ts.setFlags() should have sane defaults, and is really used
to control ts.run() operation.
NEEDINFO so's I don't have to stare at the bug.
I got rid of both those lines a while back I think I uploaded an older
version of the script.
Basically this is fixed using the forceArray and switch for ENVRAO in
HEAD and rpm-4.3-0.7.1 and above