index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Jack O'Connor <oconnor663@gmail.com> | 2016-08-01 13:06:00 +1000 |
---|---|---|
committer | Andrew Gregory <andrew.gregory.8@gmail.com> | 2017-05-08 23:27:41 -0400 |
commit | e20a502c40d1eca529bd2e86d29fee268f2d78ff (patch) | |
tree | 8ed801000ba4d3297b717bbca6f8fd7bc90e8544 /scripts/makepkg.sh.in | |
parent | 2e7162fe8785702ad409af9dad352a8bef24a65e (diff) |
-rw-r--r-- | scripts/makepkg.sh.in | 11 |
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index b2be4a0b..7fd76b20 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -337,10 +337,21 @@ get_integlist() { local integlist=() for integ in "${known_hash_algos[@]}"; do + # check for e.g. "sha256sums" local sumname="${integ}sums[@]" if [[ -n ${!sumname} ]]; then integlist+=("$integ") + continue fi + + # check for e.g. "sha256sums_x86_64" + for a in "${arch[@]}"; do + local sumname="${integ}sums_${a}[@]" + if [[ -n ${!sumname} ]]; then + integlist+=("$integ") + break + fi + done done if (( ${#integlist[@]} > 0 )); then |