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-09-14 15:16:01 +0200
commit5a26955635dc64cbdbde945acaeffa12f96fdbb6 (patch)
treeb4b97619248bd07cb969bc693a3512aa7aa58b9d
parent4dd1fa4c69d83796ff0fe7e395b34e99cce038dd (diff)
downloadperl-URPM-5a26955635dc64cbdbde945acaeffa12f96fdbb6.tar
perl-URPM-5a26955635dc64cbdbde945acaeffa12f96fdbb6.tar.gz
perl-URPM-5a26955635dc64cbdbde945acaeffa12f96fdbb6.tar.bz2
perl-URPM-5a26955635dc64cbdbde945acaeffa12f96fdbb6.tar.xz
perl-URPM-5a26955635dc64cbdbde945acaeffa12f96fdbb6.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 04c713a..62ab588 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -419,7 +419,7 @@ return_list_str(char *s, Header header, int32_t tag_name, int32_t tag_flags, int
} 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);
@@ -760,7 +760,7 @@ pack_list(Header header, int32_t tag_name, int32_t tag_flags, int32_t tag_versio
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;
struct rpmtd_s td_flags, td_list_evr;