kiss: Allow 'SKIP' to be used to disable checksums for a source. Closes #200

This commit is contained in:
Dylan Araps 2020-11-19 11:38:43 +02:00
parent b1302664d5
commit a616b61cc6
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 3 additions and 1 deletions

4
kiss
View File

@ -763,7 +763,9 @@ pkg_checksums() {
pkg_verify() {
# Verify all package checksums. This is achieved by generating a new set
# of checksums and then comparing those with the old set.
verify_cmd="NR==FNR{a[\$1];next}/^git .*/{next}!((\$1)in a){exit 1}"
verify_cmd="
NR==FNR{a[\$1];next}/^git .*|^SKIP$/{next}!((\$1)in a){exit 1}
"
for pkg do
repo_dir=$(pkg_find "$pkg")