From 4b366ad2bab97ee59bdd39124d5c75c7ecd8340f Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 27 Aug 2014 13:19:42 +0200 Subject: use HEADERGET_EXT instead of HEADERGET_DEFAULT in order to access to extension tags such as new weak deps tags (needed for next commit) --- URPM.xs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/URPM.xs b/URPM.xs index 50091a8..b90404e 100644 --- a/URPM.xs +++ b/URPM.xs @@ -392,7 +392,7 @@ return_list_str(char *s, const Header header, rpmTag tag_name, rpmTag tag_flags, } else if (header) { struct rpmtd_s list, flags, list_evr; - if (headerGet(header, tag_name, &list, HEADERGET_DEFAULT)) { + if (headerGet(header, tag_name, &list, HEADERGET_EXT)) { memset((void*)&flags, 0, sizeof(flags)); memset((void*)&list_evr, 0, sizeof(list_evr)); if (tag_flags) headerGet(header, tag_flags, &flags, HEADERGET_DEFAULT); @@ -722,7 +722,7 @@ pack_list(const Header header, rpmTag tag_name, rpmTag tag_flags, rpmTag tag_ver char *p = buff; struct rpmtd_s td; - if (headerGet(header, tag_name, &td, HEADERGET_DEFAULT)) { + if (headerGet(header, tag_name, &td, HEADERGET_EXT)) { char **list = td.data; char **list_evr = NULL; rpmTag *flags = NULL; -- cgit v1.2.1