mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-24 16:10:05 -07:00
kiss-new: Ensure that each package has checksums.
This commit is contained in:
parent
31225ae542
commit
416f2b097b
26
kiss-new
26
kiss-new
@ -151,8 +151,30 @@ pkg_sources() {
|
||||
}
|
||||
|
||||
pkg_build() {
|
||||
# Build packages.
|
||||
:
|
||||
# Build packages and turn them into packaged tarballs. This function
|
||||
# also checks checksums, downloads sources and ensure all dependencies
|
||||
# are installed.
|
||||
|
||||
for pkg; do
|
||||
# Find the package's repository files. This needs to keep
|
||||
# happening as we can't store this data in any kind of data
|
||||
# structure.
|
||||
repo_dir=$(pkg_search "$pkg")
|
||||
|
||||
# Ensure that checksums exist prior to building the package.
|
||||
[ -f "$repo_dir/checksums" ] || {
|
||||
log "[$pkg]: Checksums are missing."
|
||||
|
||||
# Instead of dying above, log it to the terminal. Also define a
|
||||
# variable so we *can* die after all checksum files have been
|
||||
# checked.
|
||||
no_checkums="$no_checkums$pkg "
|
||||
}
|
||||
done
|
||||
|
||||
# Die here as packages without checksums were found above.
|
||||
[ "$no_checkums" ] &&
|
||||
die "Run '$kiss checksum ${no_checkums% }' to generate checksums."
|
||||
}
|
||||
|
||||
pkg_checksums() {
|
||||
|
Loading…
Reference in New Issue
Block a user