Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Properly set the signature type if pubkey is set in pkg.conf
Baptiste Daroussin committed 12 years ago
commit f23147bc12fb7c733c45b895b491d845e4f5f7dd
parent cf4da36
1 file changed +4 -1
modified libpkg/pkg_config.c
@@ -892,8 +892,11 @@ load_repositories(const char *repodir)
		r = calloc(1, sizeof(struct pkg_repo));
		r->name = strdup(REPO_NAME_PREFIX"packagesite");
		r->url = subst_packagesite_str(url);
-
		if (pub != NULL)
+
		r->signature_type = SIG_NONE;
+
		if (pub != NULL) {
			r->pubkey = strdup(pub);
+
			r->signature_type = SIG_PUBKEY;
+
		}
		r->mirror_type = NOMIRROR;
		if (mirror_type != NULL) {
			if (strcasecmp(mirror_type, "srv") == 0)