Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Update to add keys argument to pkg_parse_manifest() which implies adding calls topkg_manifest_keys_{new,free}().
Matthew Seaman committed 13 years ago
commit 98b489d1f4548749332e3de162d2c537b276b2ab
parent eda2982
1 file changed +7 -1
modified tests/lib/manifest.c
@@ -123,13 +123,19 @@ test_manifest(void)
	struct pkg_option *option = NULL;
	struct pkg_category *category = NULL;
	struct pkg_file *file = NULL;
+
        struct pkg_manifest_key *keys = NULL;
	const char *pkg_str;
	int64_t pkg_int;
	int i;

+
	pkg_manifest_keys_new(&keys);
+
	ATF_REQUIRE(keys != NULL);
+

	ATF_REQUIRE_EQ(EPKG_OK, pkg_new(&p, PKG_FILE));
	ATF_REQUIRE(p != NULL);
-
	ATF_REQUIRE_EQ(EPKG_OK, pkg_parse_manifest(p, manifest));
+
	ATF_REQUIRE_EQ(EPKG_OK, pkg_parse_manifest(p, manifest, keys));
+

+
	pkg_manifest_keys_free(keys);

	ATF_REQUIRE(pkg_get(p, PKG_NAME, &pkg_str) == EPKG_OK);
	ATF_REQUIRE(strcmp(pkg_str, "foobar") == 0);