Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
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 11 years ago
commit 33cdf869e2a9b841cafe17b9c6a432a74b11664b
parent aa950e31c5c92d292aa660a947692030b1aeb423
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);