Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Use new checksum API when converting from old packages, which also fix a bug: symlink did not get any checksum when converting before that change
Baptiste Daroussin committed 10 years ago
commit 33cdf869e2a9b841cafe17b9c6a432a74b11664b
parent aa950e3
1 file changed +1 -1
modified libpkg/pkg_old.c
@@ -116,7 +116,7 @@ pkg_from_old(struct pkg *p)
	while (pkg_files(p, &f) == EPKG_OK) {
		if (f->sum == NULL)
			continue;
-
		f->sum = pkg_checksum_file(f->path, PKG_HASH_TYPE_SHA256_HEX);
+
		f->sum = pkg_checksum_generate_file(f->path, PKG_HASH_TYPE_SHA256_HEX);
	}

	return (EPKG_OK);