Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Make keys in repository configuration case insensible
Baptiste Daroussin committed 13 years ago
commit 6eb03588c3719a087f6639c4b85a9d12771c8023
parent 2dd845c
1 file changed +3 -3
modified libpkg/pkg_config.c
@@ -702,11 +702,11 @@ add_repo(yaml_document_t *doc, yaml_node_t *repo, yaml_node_t *node)
			continue;
		}

-
		if (strcmp(key->data.scalar.value, "url") == 0)
+
		if (strcasecmp(key->data.scalar.value, "url") == 0)
			url = val->data.scalar.value;
-
		else if (strcmp(key->data.scalar.value, "pubkey") == 0)
+
		else if (strcasecmp(key->data.scalar.value, "pubkey") == 0)
			pubkey = val->data.scalar.value;
-
		else if (strcmp(key->data.scalar.value, "enable") == 0)
+
		else if (strcasecmp(key->data.scalar.value, "enable") == 0)
			enable = val->data.scalar.value;

		++pair;