abuild: print build start, end date and elapsed time

This commit is contained in:
Timo Teräs 2018-11-08 10:47:28 +02:00
parent 17cb68e9fb
commit 100202920b
1 changed files with 5 additions and 1 deletions

View File

@ -1519,11 +1519,15 @@ build_abuildrepo() {
# check early if we have abuild key
abuild-sign --installed
logcmd "building $repo/$pkgname-$pkgver-r$pkgrel"
msg "Building $repo/$pkgname $pkgver-r$pkgrel (using $program $program_version)"
local _starttime=$(date --utc +%s)
msg "Building $repo/$pkgname $pkgver-r$pkgrel (using $program $program_version) started $(date -R)"
for part in sanitycheck builddeps clean fetch unpack prepare mkusers build \
$_check rootpkg; do
runpart $part
done
local _endtime=$(date --utc +%s)
local _difftime=$((_endtime - _starttime))
msg "Build complete at $(date -R) elaped time $((_difftime/3600))h $((_difftime/60%60))m $((_difftime%60))s"
cleanup $CLEANUP
fi
update_abuildrepo_index