1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00

makepkg: fix checksum generation with VCS sources

VCS sources should have "SKIP" for their checksum value

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Allan McRae 2012-06-04 11:24:52 +10:00
parent 91d119af1c
commit 682c9af846

View File

@ -789,10 +789,21 @@ generate_checksums() {
local netfile
for netfile in "${source[@]}"; do
local file
file="$(get_filepath "$netfile")" || missing_source_file "$netfile"
local sum="$(openssl dgst -${integ} "$file")"
sum=${sum##* }
local proto sum
proto="$(get_protocol "$netfile")"
case $proto in
git*)
sum="SKIP"
;;
*)
local file
file="$(get_filepath "$netfile")" || missing_source_file "$netfile"
sum="$(openssl dgst -${integ} "$file")"
sum=${sum##* }
;;
esac
(( ct )) && printf "%s" "$indent"
printf "%s" "'$sum'"
ct=$(($ct+1))