mirror of
https://github.com/moparisthebest/pacman
synced 2025-03-01 09:51:50 -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
|
||||
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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user