From c0cc18b6ee00f603f10ce01fa47f025e59210791 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 15 Jul 2021 07:30:09 +0300 Subject: [PATCH] kiss: Give tarball to post-package hook. See #234 --- kiss | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/kiss b/kiss index 9c360a5..8d327eb 100755 --- a/kiss +++ b/kiss @@ -710,6 +710,8 @@ pkg_tar() ( # across implementations. cd "$pkg_dir/$1" + _tar_file=$bin_dir/$1@$repo_ver-$repo_rel.tar.$KISS_COMPRESS + # Create a tarball from the contents of the built package. tar cf - . | case $KISS_COMPRESS in bz2) bzip2 -z ;; @@ -718,13 +720,14 @@ pkg_tar() ( lz) lzip -z ;; xz) xz -zT0 ;; zst) zstd -z ;; - esac > "$bin_dir/$1@$repo_ver-$repo_rel.tar.$KISS_COMPRESS" + esac > "$_tar_file" log "$1" "Successfully created tarball" # arg1: post-package # arg2: package name - run_hook post-package "$1" + # arg3: path to tarball + run_hook post-package "$1" "$_tar_file" ) pkg_build_all() {