> BTW there is another bug where if an older rpm does not know about a > newer field, it returns undef. I think the correct behavior is for it to > return "(none)". > > I.e. asking an older rpm about URL returns nothing. It exposed a bug/ > workaround I had to put in to set undef values. > for the record the correct behaviour in this case should be to return "(none)"
Returning an explicit "(none)" rather than an error message when querying an unknown tag using a legacy version of rpm would confuse two distinct problems 1) rpm does not know about a tag. 2) the tag does not exist. which have different solutions (i.e. 1) is fixed by upgrading rpm, 2) is a packaging or query option problem).