Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix missing cert due to pkg-repo creating .pub file, not .cert
Bryan Drewery committed 12 years ago
commit e1e365df3a120047bc0ffb3febf99b57c9d93765
parent e4ccadb
1 file changed +2 -2
modified libpkg/update.c
@@ -294,9 +294,9 @@ repo_archive_extract_file(int fd, const char *file, const char *dest, struct pkg
				s->sig = malloc(s->siglen);
				archive_read_data(a, s->sig, s->siglen);
			}
-
			if (has_ext(archive_entry_pathname(ae), ".cert")) {
+
			if (has_ext(archive_entry_pathname(ae), ".pub")) {
				snprintf(key, MAXPATHLEN, "%.*s",
-
				    (int) strlen(archive_entry_pathname(ae)) - 5,
+
				    (int) strlen(archive_entry_pathname(ae)) - 4,
				    archive_entry_pathname(ae));
				HASH_FIND_STR(sc, key, s);
				if (s == NULL) {