mirror of
https://github.com/moparisthebest/pacman
synced 2025-03-01 09:51:50 -05:00
makepkg: print "SKIP" for signature checksums
There are valid reasons for a source files PGP signature to be changed (expired key, expired signature, additional person signing...). Thus providing a checksum for signature files can potentially cause a PKGBUILD to require unnecessary updating. Avoid this issue by using "SKIP" for the signature checksum. Fixes FS#31590. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
fbf96203ab
commit
93148d0879
@ -1049,10 +1049,14 @@ generate_checksums() {
|
|||||||
sum="SKIP"
|
sum="SKIP"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
if [[ ! $netfile = *.@(sig?(n)|asc) ]]; then
|
||||||
local file
|
local file
|
||||||
file="$(get_filepath "$netfile")" || missing_source_file "$netfile"
|
file="$(get_filepath "$netfile")" || missing_source_file "$netfile"
|
||||||
sum="$(openssl dgst -${integ} "$file")"
|
sum="$(openssl dgst -${integ} "$file")"
|
||||||
sum=${sum##* }
|
sum=${sum##* }
|
||||||
|
else
|
||||||
|
sum="SKIP"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user