Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
hashed pkg: use the new .bsd extension
Baptiste Daroussin committed 5 years ago
commit 59de9ac269cacdc5d1826b7505139e660b1a43e9
parent 359b83d
1 file changed +4 -4
modified libpkg/pkg_create.c
@@ -316,12 +316,12 @@ hash_file(struct pkg_create *pc, struct pkg *pkg)
	char filename[MAXPATHLEN];

	/* Find the hash and rename the file and create a symlink */
-
	pkg_snprintf(filename, sizeof(filename), "%n-%v.%S",
-
			pkg, pkg, packing_format_to_string(pc->format));
+
	pkg_snprintf(filename, sizeof(filename), "%n-%v.bsd",
+
			pkg, pkg);
	pkg->sum = pkg_checksum_file(filename,
			PKG_HASH_TYPE_SHA256_HEX);
-
	pkg_snprintf(hash_dest, sizeof(hash_dest), "%n-%v-%z.%S",
-
			pkg, pkg, pkg, packing_format_to_string(pc->format));
+
	pkg_snprintf(hash_dest, sizeof(hash_dest), "%n-%v-%z.bsd",
+
			pkg, pkg, pkg);

	pkg_debug(1, "Rename the pkg file from: %s to: %s",
			filename, hash_dest);