This is a preliminary PR to start discussion off on allowing the getRPMHeaders hub call to default to all headers when none are specified explicitly.
This adds special treatment to a sentinel None value for the headers parameter to get_header_fields. An empty list would still be treated as if no headers were specified. To this end, the conversion of None to an empty list is therefore removed from the beginning of the getRPMHeaders call.
It may seem strange to support the call wanting no data back, but as that's the current default behavior anyway, I think that's fine.
Potential problems: is rpm.tagnames available in historic copies of the rpm library? It's in at least the RHEL 6 version.
This is a preliminary PR to start discussion off on allowing the getRPMHeaders hub call to default to all headers when none are specified explicitly.
This adds special treatment to a sentinel None value for the headers parameter to get_header_fields. An empty list would still be treated as if no headers were specified. To this end, the conversion of None to an empty list is therefore removed from the beginning of the getRPMHeaders call.
It may seem strange to support the call wanting no data back, but as that's the current default behavior anyway, I think that's fine.
Potential problems: is rpm.tagnames available in historic copies of the rpm library? It's in at least the RHEL 6 version.