[pacman-dev] [PATCH 1/2] libmakepkg: migrate to schema.sh for integsums
Eli Schwartz
eschwartz at archlinux.org
Fri Feb 15 16:38:17 UTC 2019
We cannot use most of the arrays defined there as srcinfo is dependent
on the order, but migrate the hashes for now.
Signed-off-by: Eli Schwartz <eschwartz at archlinux.org>
---
scripts/libmakepkg/srcinfo.sh.in | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/libmakepkg/srcinfo.sh.in b/scripts/libmakepkg/srcinfo.sh.in
index 509c4860..b9eeb817 100644
--- a/scripts/libmakepkg/srcinfo.sh.in
+++ b/scripts/libmakepkg/srcinfo.sh.in
@@ -24,6 +24,7 @@ LIBMAKEPKG_SRCINFO_SH=1
LIBRARY=${LIBRARY:-'@libmakepkgdir@'}
source "$LIBRARY/util/pkgbuild.sh"
+source "$LIBRARY/util/schema.sh"
srcinfo_open_section() {
printf '%s = %s\n' "$1" "$2"
@@ -63,7 +64,7 @@ srcinfo_write_section_details() {
local attr package_arch a
local multivalued_arch_attrs=(source provides conflicts depends replaces
optdepends makedepends checkdepends
- {md5,sha{1,224,256,384,512}}sums)
+ "${known_hash_algos[@]/%/sums}")
for attr in "${singlevalued[@]}"; do
pkgbuild_extract_to_srcinfo "$1" "$attr" 0
--
2.20.1
More information about the pacman-dev
mailing list