aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2010-12-17 23:45:02 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2010-12-17 23:45:02 +0000
commit3bbeb72d543d9a5cb75d4053ade6252fa5e73445 (patch)
treefeee9a8666b2238bf2549fcc8f0ddd6a9bb376b1
parentc1c66c801514e3c6a1f1242994174cadbc37b5c4 (diff)
downloadperl-URPM-3bbeb72d543d9a5cb75d4053ade6252fa5e73445.tar
perl-URPM-3bbeb72d543d9a5cb75d4053ade6252fa5e73445.tar.gz
perl-URPM-3bbeb72d543d9a5cb75d4053ade6252fa5e73445.tar.bz2
perl-URPM-3bbeb72d543d9a5cb75d4053ade6252fa5e73445.tar.xz
perl-URPM-3bbeb72d543d9a5cb75d4053ade6252fa5e73445.zip
fix RPMQV_* enums not mapped to RPMTAG_* in rpmtag_from_string()
-rw-r--r--URPM.xs8
1 files changed, 8 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index 17fbd02..bc2e333 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -233,6 +233,14 @@ rpmtag_from_string(const char *tag)
qv_c = NULL;
static const char tag_context[] = "rpmtag",
qv_context[] = "rpmqvsources";
+ /* XXX: rpmcli.h: @todo Reassign to tag values. */
+ if (!strcmp(tag, "whatprovides"))
+ return RPMTAG_PROVIDENAME;
+ else if (!strcmp(tag, "whatrequires"))
+ return RPMTAG_REQUIRENAME;
+ else if (!strcmp(tag, "path"))
+ return RPMTAG_BASENAMES;
+
if(tag_c == NULL) {
tag_c = rpmconstNew();
if(!rpmconstInitToContext(tag_c, tag_context))