From 9f94461b7a2a820eec2c41cd11b0356559cee21f Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Mon, 10 Feb 2014 23:57:50 +0000 Subject: [PATCH] pkg: make fields other than CFLAGS and LIBS case-sensitive (closes #60) --- pkg.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg.c b/pkg.c index 7b3534c..9349a69 100644 --- a/pkg.c +++ b/pkg.c @@ -240,11 +240,11 @@ pkg_new_from_file(const char *filename, FILE *f, unsigned int flags) switch (op) { case ':': - if (!strcasecmp(key, "Name")) + if (!strcmp(key, "Name")) pkg->realname = pkg_tuple_parse(&pkg->vars, value); - else if (!strcasecmp(key, "Description")) + else if (!strcmp(key, "Description")) pkg->description = pkg_tuple_parse(&pkg->vars, value); - else if (!strcasecmp(key, "Version")) + else if (!strcmp(key, "Version")) pkg->version = pkg_tuple_parse(&pkg->vars, value); else if (!strcasecmp(key, "CFLAGS")) pkg_fragment_parse(&pkg->cflags, &pkg->vars, value); @@ -254,11 +254,11 @@ pkg_new_from_file(const char *filename, FILE *f, unsigned int flags) pkg_fragment_parse(&pkg->libs, &pkg->vars, value); else if (!strcasecmp(key, "LIBS.private")) pkg_fragment_parse(&pkg->libs_private, &pkg->vars, value); - else if (!strcasecmp(key, "Requires")) + else if (!strcmp(key, "Requires")) pkg_dependency_parse(pkg, &pkg->requires, value); - else if (!strcasecmp(key, "Requires.private")) + else if (!strcmp(key, "Requires.private")) pkg_dependency_parse(pkg, &pkg->requires_private, value); - else if (!strcasecmp(key, "Conflicts")) + else if (!strcmp(key, "Conflicts")) pkg_dependency_parse(pkg, &pkg->conflicts, value); break; case '=':