diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-07-03 13:43:45 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-07-03 13:43:45 +0000 |
commit | 36c2354591038cbddc88607d86f7f74534245fa6 (patch) | |
tree | d10c562d2b13133f969e28ab3973d034f216dfec /kiss | |
parent | 7af1d3aea03ca620c564b82f0b45b8bfbe501934 (diff) | |
download | cpt-36c2354591038cbddc88607d86f7f74534245fa6.tar.gz |
kiss-new: Polish
FossilOrigin-Name: 94917dc44c00f412db7e0e8189e8bd4633e188450c4e0a583611dfb9fce2a754
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 28 |
1 files changed, 4 insertions, 24 deletions
@@ -41,9 +41,10 @@ pkg_lint() { cd "$pkg_location" || die "'$pkg_location' not accessible" - [ -f sources ] || die "Sources file not found." - [ -x build ] || die "Build file not found or not executable." - [ -s version ] || die "Version file not found or empty." + [ -f sources ] || die "[$1]: Sources file not found." + [ -x build ] || die "[$1]: Build file not found or not executable." + [ -s version ] || die "[$1]: Version file not found or empty." + [ -f checksums ] || die "[$1]: Checksums file not found." # Ensure that the release field in the version file is set # to something. @@ -410,27 +411,6 @@ pkg_build() { done for pkg; do pkg_lint "$pkg"; done - 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." - for pkg; do pkg_sources "$pkg"; done for pkg; do pkg_verify "$pkg"; done |