libmakepkg: migrate to schema.sh for integsums
We cannot use most of the arrays defined in schema.sh as srcinfo is dependent on the order, but migrate the hashes for now. Signed-off-by: Eli Schwartz <eschwartz@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
656e851f0a
commit
3c774252ef
1 changed files with 2 additions and 1 deletions
|
@ -24,6 +24,7 @@ LIBMAKEPKG_SRCINFO_SH=1
|
||||||
LIBRARY=${LIBRARY:-'@libmakepkgdir@'}
|
LIBRARY=${LIBRARY:-'@libmakepkgdir@'}
|
||||||
|
|
||||||
source "$LIBRARY/util/pkgbuild.sh"
|
source "$LIBRARY/util/pkgbuild.sh"
|
||||||
|
source "$LIBRARY/util/schema.sh"
|
||||||
|
|
||||||
srcinfo_open_section() {
|
srcinfo_open_section() {
|
||||||
printf '%s = %s\n' "$1" "$2"
|
printf '%s = %s\n' "$1" "$2"
|
||||||
|
@ -63,7 +64,7 @@ srcinfo_write_section_details() {
|
||||||
local attr package_arch a
|
local attr package_arch a
|
||||||
local multivalued_arch_attrs=(source provides conflicts depends replaces
|
local multivalued_arch_attrs=(source provides conflicts depends replaces
|
||||||
optdepends makedepends checkdepends
|
optdepends makedepends checkdepends
|
||||||
{md5,sha{1,224,256,384,512}}sums)
|
"${known_hash_algos[@]/%/sums}")
|
||||||
|
|
||||||
for attr in "${singlevalued[@]}"; do
|
for attr in "${singlevalued[@]}"; do
|
||||||
pkgbuild_extract_to_srcinfo "$1" "$attr" 0
|
pkgbuild_extract_to_srcinfo "$1" "$attr" 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue