kiss cleanup

This commit is contained in:
Dylan Araps 2019-09-10 11:26:34 +03:00
parent b3de35dfcf
commit bd42b9dd28

8
kiss
View File

@ -450,20 +450,18 @@ pkg_build() {
# Instead of dying above, log it to the terminal. Also define a # Instead of dying above, log it to the terminal. Also define a
# variable so we *can* die after all checksum files have been # variable so we *can* die after all checksum files have been
# checked. # checked.
no_checkums="$no_checkums$pkg " no_sums="$no_sums$pkg "
} }
done done
# Die here as packages without checksums were found above. # Die here as packages without checksums were found above.
[ "$no_checkums" ] && [ "$no_sums" ] && die "Checksums missing, run 'kiss checksum ${no_sums% }'"
die "Run 'kiss checksum ${no_checkums% }' to generate checksums"
for pkg; do pkg_sources "$pkg"; done for pkg; do pkg_sources "$pkg"; done
for pkg; do pkg_verify "$pkg"; done for pkg; do pkg_verify "$pkg"; done
# Die here as packages with differing checksums were found above. # Die here as packages with differing checksums were found above.
[ "$mismatch" ] && [ "$mismatch" ] && die "Checksum mismatch with: ${mismatch% }"
die "Checksum mismatch with: ${mismatch% }"
# Finally build and create tarballs for all passed packages and # Finally build and create tarballs for all passed packages and
# dependencies. # dependencies.