cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit a62d603a9aaf5362c12a04a3dd22700dddaad627
parent 80459f11d1af2a7fb464e19253b1e1036868164f
Author: Cem Keylan <cem@ckyln.com>
Date:   Tue, 26 May 2020 00:43:06 +0300

kiss: rename hashcheck to sh256 for compatibility in kiss-bin

Diffstat:
Mkiss | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git 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"