aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-12-17 15:05:02 +0000
committerThierry Vignaud <tv@mageia.org>2012-12-17 15:05:02 +0000
commit234acc34423843403c6c86ce24fa3dfa6d9ee520 (patch)
treeb888f232d21ca3607ea112229b88629dbc591bd5
parent2f9986c702c505bd1106266455fbc89378a45ff1 (diff)
downloadperl-URPM-234acc34423843403c6c86ce24fa3dfa6d9ee520.tar
perl-URPM-234acc34423843403c6c86ce24fa3dfa6d9ee520.tar.gz
perl-URPM-234acc34423843403c6c86ce24fa3dfa6d9ee520.tar.bz2
perl-URPM-234acc34423843403c6c86ce24fa3dfa6d9ee520.tar.xz
perl-URPM-234acc34423843403c6c86ce24fa3dfa6d9ee520.zip
RPMFILE_EXCLUDE & RPMFILE_UNPATCHED were drop from external API in rpm-4.11
RPMFILE_UNPATCHED is no more used and RPMFILE_EXCLUDE only exists during spec parse (see rpm commit 8d277bbb)
-rw-r--r--NEWS2
-rw-r--r--URPM.xs3
2 files changed, 2 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 2f83f7b..b90bbf8 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- fix compiling with rpm-4.11
+
Version 4.21.1 - 7 December 2012
- fix EVR() on packages from rpmdb (was ok on synthesis ones) (mga#7739)
diff --git a/URPM.xs b/URPM.xs
index 3818162..c3f6900 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -483,9 +483,7 @@ return_list_tag_modifier(const Header header, rpmTag tag_name) {
if (tag & RPMFILE_NOREPLACE) *s++ = 'n';
if (tag & RPMFILE_SPECFILE) *s++ = 'S';
if (tag & RPMFILE_README) *s++ = 'R';
- if (tag & RPMFILE_EXCLUDE) *s++ = 'e';
if (tag & RPMFILE_ICON) *s++ = 'i';
- if (tag & RPMFILE_UNPATCHED) *s++ = 'u';
if (tag & RPMFILE_PUBKEY) *s++ = 'p';
} else {
rpmtdFreeData(&td);
@@ -1103,7 +1101,6 @@ static void drop_tags(Header *h) {
headerDel(*h, RPMTAG_ICON);
headerDel(*h, RPMTAG_GIF);
- headerDel(*h, RPMTAG_EXCLUDE);
headerDel(*h, RPMTAG_EXCLUSIVE);
headerDel(*h, RPMTAG_COOKIE);
headerDel(*h, RPMTAG_VERIFYSCRIPT);