kiss: show all missing manifest files

This commit is contained in:
Dylan Araps 2021-07-03 23:39:40 +00:00
parent 8f0bf83897
commit f66659e5b1
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

10
kiss
View File

@ -587,9 +587,15 @@ pkg_manifest_validate() {
log "$1" "Checking if manifest valid"
while read -r line; do
[ -h "./$line" ] || [ -e "./$line" ] ||
die "File $line missing from tarball but mentioned in manifest"
[ -h "./$line" ] || [ -e "./$line" ] || {
printf '%s\n' "$line"
set -- "$@" "$line"
}
done < "$pkg_db/$1/manifest"
case $# in [2-9]|[1-9][0-9]*)
die "$1" "manifest contains $(($# - 1)) non-existent files"
esac
}
pkg_etcsums() {