aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2011-04-27 00:37:24 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2011-04-27 00:37:24 +0000
commit584f951a0b1629aeb99e57165efb232f4471cb37 (patch)
tree22f5ab6a2d0b5823f65e36f28a7d880adb78c03d /URPM.xs
parente3ce6ba2e026d669e06c6e66d53f218e91f9b6d7 (diff)
downloadperl-URPM-584f951a0b1629aeb99e57165efb232f4471cb37.tar
perl-URPM-584f951a0b1629aeb99e57165efb232f4471cb37.tar.gz
perl-URPM-584f951a0b1629aeb99e57165efb232f4471cb37.tar.bz2
perl-URPM-584f951a0b1629aeb99e57165efb232f4471cb37.tar.xz
perl-URPM-584f951a0b1629aeb99e57165efb232f4471cb37.zip
do case insensitive string compare in rpmtag_from_string
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs6
1 files changed, 3 insertions, 3 deletions
diff --git a/URPM.xs b/URPM.xs
index bcef938..ef35387 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -244,11 +244,11 @@ rpmtag_from_string(const char *tag)
static const char tag_context[] = "rpmtag",
qv_context[] = "rpmqvsources";
/* XXX: rpmcli.h: @todo Reassign to tag values. */
- if (!strcmp(tag, "whatprovides"))
+ if (!strcasecmp(tag, "whatprovides"))
return RPMTAG_PROVIDENAME;
- else if (!strcmp(tag, "whatrequires"))
+ else if (!strcasecmp(tag, "whatrequires"))
return RPMTAG_REQUIRENAME;
- else if (!strcmp(tag, "path"))
+ else if (!strcasecmp(tag, "path"))
return RPMTAG_BASENAMES;
if(tag_c == NULL) {