Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Delete temporary txz if pkg repo rsa-key fails
Bryan Drewery committed 12 years ago
commit ced75043fd0e4d917bf7ed83f3ea3f6f7666f2ec
parent 55a8208
1 file changed +1 -0
modified libpkg/pkg_repo.c
@@ -517,6 +517,7 @@ pack_db(const char *name, const char *archive, char *path, struct rsa_key *rsa,
	if (rsa != NULL) {
		if (rsa_sign(path, rsa, &sigret, &siglen) != EPKG_OK) {
			packing_finish(pack);
+
			unlink(path);
			return (EPKG_FATAL);
		}