Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix case insensitive options
Baptiste Daroussin committed 11 years ago
commit aa5c295d1f08d288804c1af85e49b7b7d0579b64
parent 52c3ef8
1 file changed +3 -3
modified libpkg/pkg_config.c
@@ -802,14 +802,14 @@ pkg_init(const char *path, const char *reposdir)

		if (ncfg == NULL)
			ncfg = ucl_object_typed_new(UCL_OBJECT);
-
		ucl_object_insert_key(ncfg, ucl_object_ref(cur), key, strlen(key), false);
+
		ucl_object_insert_key(ncfg, ucl_object_copy(cur), sbuf_data(ukey), sbuf_len(ukey), true);
	}

	if (ncfg != NULL) {
		it = NULL;
		while (( cur = ucl_iterate_object(ncfg, &it, true))) {
			key = ucl_object_key(cur);
-
			ucl_object_replace_key(config, ucl_object_ref(cur), key, strlen(key), false);
+
			ucl_object_replace_key(config, ucl_object_ref(cur), key, strlen(key), true);
		}
		ucl_object_unref(ncfg);
	}
@@ -901,7 +901,7 @@ pkg_init(const char *path, const char *reposdir)
		it = NULL;
		while (( cur = ucl_iterate_object(ncfg, &it, true))) {
			key = ucl_object_key(cur);
-
			ucl_object_replace_key(config, ucl_object_ref(cur), key, strlen(key), false);
+
			ucl_object_replace_key(config, ucl_object_ref(cur), key, strlen(key), true);
		}
		ucl_object_unref(ncfg);
	}