aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-05-25 21:43:06 +0000
committermerakor <cem@ckyln.com>2020-05-25 21:43:06 +0000
commite0f67f7c0f203a8d23c3d6d3a0395b667e88198b (patch)
tree40904a0518c6e6635684141ac9c6adceba32cbcd
parent4f4a57bbe614b5f589d34aa864d719e107466141 (diff)
downloadcpt-e0f67f7c0f203a8d23c3d6d3a0395b667e88198b.tar.gz
kiss: rename hashcheck to sh256 for compatibility in kiss-bin
FossilOrigin-Name: b0d89e23226dd7ba0d2620f74b239c486a84a5d1f20980433106453e14cbabcc
-rwxr-xr-xkiss10
1 files changed, 5 insertions, 5 deletions
diff --git a/kiss b/kiss
index 42190fb..0bb52b6 100755
--- a/kiss
+++ b/kiss
@@ -105,7 +105,7 @@ decompress() {
esac < "$1"
}
-hashcheck() {
+sh256() {
# This is a sha256sum function for outputting a standard
# hash digest. sha256 on BSD systems require an '-r' flag
# for outputting the same way with sha256sum, and still,
@@ -575,7 +575,7 @@ pkg_etcsums() (
find etc -type f | while read -r file; do
- hashcheck "$file"
+ sh256 "$file"
done > "$pkg_dir/$1/$pkg_db/$1/etcsums"
)
@@ -775,7 +775,7 @@ pkg_checksums() {
# An easy way to get 'sha256sum' to print with the 'basename'
# of files is to 'cd' to the file's directory beforehand.
- (cd "$src_path" && hashcheck "${src##*/}") ||
+ (cd "$src_path" && sh256 "${src##*/}") ||
die "$1" "Failed to generate checksums"
done < "$repo_dir/sources"
}
@@ -973,8 +973,8 @@ pkg_etc() {
# Handle files in /etc/ based on a 3-way checksum check.
find etc ! -type d | while read -r file; do
- { sum_new=$(hashcheck "$file")
- sum_sys=$(cd "$KISS_ROOT/"; hashcheck "$file")
+ { sum_new=$(sh256 "$file")
+ sum_sys=$(cd "$KISS_ROOT/"; sh256 "$file")
sum_old=$("$grep" "$file$" "$mak_dir/c"); } 2>/dev/null ||:
log "$pkg_name" "Doing 3-way handshake for $file"