Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Properly set the signature type if pubkey is set in pkg.conf
Baptiste Daroussin committed 12 years ago
commit f23147bc12fb7c733c45b895b491d845e4f5f7dd
parent cf4da36b9ceb2f2d872359665bf5b2915b9c4899
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)