From d6db894cbc1a0b3615498a8667fb266d9fc20b68 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 7 Jul 2021 10:12:33 +0300 Subject: [PATCH] kiss: expose build queue to hooks _build_cur holds current package number. _build_tot holds the total number of packages. Closes #222 --- kiss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiss b/kiss index 4072b0f..26b5a57 100755 --- a/kiss +++ b/kiss @@ -721,7 +721,7 @@ pkg_build_all() { # Finally build and create tarballs for all passed packages and # dependencies. for pkg do - log "$pkg" "Building package ($((in+=1))/$#)" + log "$pkg" "Building package ($((_build_cur+=1))/${_build_tot:=$#})" pkg_find_version "$pkg" run_hook pre-extract "$pkg" "$pkg_dir/$pkg"