aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2014-08-27 13:19:42 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2014-08-27 13:21:06 +0200
commit4b366ad2bab97ee59bdd39124d5c75c7ecd8340f (patch)
treeb4d21d7e3bc9380dd4ae9f93d01692af03d8b157
parent4371f8dce15761c2c4d92d572d1adbd45fb37df6 (diff)
downloadperl-URPM-4b366ad2bab97ee59bdd39124d5c75c7ecd8340f.tar
perl-URPM-4b366ad2bab97ee59bdd39124d5c75c7ecd8340f.tar.gz
perl-URPM-4b366ad2bab97ee59bdd39124d5c75c7ecd8340f.tar.bz2
perl-URPM-4b366ad2bab97ee59bdd39124d5c75c7ecd8340f.tar.xz
perl-URPM-4b366ad2bab97ee59bdd39124d5c75c7ecd8340f.zip
use HEADERGET_EXT instead of HEADERGET_DEFAULT
in order to access to extension tags such as new weak deps tags (needed for next commit)
-rw-r--r--URPM.xs4
1 files 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;