kiss: expose build queue to hooks

_build_cur holds current package number.
_build_tot holds the total number of packages.

Closes #222
This commit is contained in:
Dylan Araps 2021-07-07 10:12:33 +03:00
parent 2008f7478e
commit d6db894cbc
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C
1 changed files with 1 additions and 1 deletions

2
kiss
View File

@ -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"