mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-15 13:55:09 -05: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:
parent
91d119af1c
commit
682c9af846
@ -789,10 +789,21 @@ generate_checksums() {
|
|||||||
|
|
||||||
local netfile
|
local netfile
|
||||||
for netfile in "${source[@]}"; do
|
for netfile in "${source[@]}"; do
|
||||||
local file
|
local proto sum
|
||||||
file="$(get_filepath "$netfile")" || missing_source_file "$netfile"
|
proto="$(get_protocol "$netfile")"
|
||||||
local sum="$(openssl dgst -${integ} "$file")"
|
|
||||||
sum=${sum##* }
|
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"
|
(( ct )) && printf "%s" "$indent"
|
||||||
printf "%s" "'$sum'"
|
printf "%s" "'$sum'"
|
||||||
ct=$(($ct+1))
|
ct=$(($ct+1))
|
||||||
|
Loading…
Reference in New Issue
Block a user