Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | rpmdb/tagname.c: Add the 0x54aafb71 (filenames) type to rpmTagGetType |
| 2 | |
| 3 | There is already a workaround in the _tagName function to show that the |
| 4 | special 'filenames' item is value. This adds a similar patch to the |
| 5 | _tagType to return the proper type, otherwise it comes back as a simple |
| 6 | RPM_STRING_ARRAY_TYPE which limits the response to the first element. |
| 7 | |
| 8 | Upstream-Status: Submitted [RPM5 maintainer] |
| 9 | |
| 10 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> |
| 11 | |
| 12 | Index: rpm-5.4.15/rpmdb/tagname.c |
| 13 | =================================================================== |
| 14 | --- rpm-5.4.15.orig/rpmdb/tagname.c |
| 15 | +++ rpm-5.4.15/rpmdb/tagname.c |
| 16 | @@ -353,6 +353,9 @@ static unsigned int _tagType(rpmTag tag) |
| 17 | case RPMDBI_RECNO: |
| 18 | case RPMDBI_HEAP: |
| 19 | break; |
| 20 | + /* XXX make sure that h.['filenames'] in python "works". */ |
| 21 | + case 0x54aafb71: |
| 22 | + return (RPM_STRING_ARRAY_TYPE + RPM_ARRAY_RETURN_TYPE); |
| 23 | default: |
| 24 | if (_rpmTags.byValue == NULL) |
| 25 | break; |