Commit 10020292 authored by Timo Teräs's avatar Timo Teräs

abuild: print build start, end date and elapsed time

parent 17cb68e9
...@@ -1519,11 +1519,15 @@ build_abuildrepo() { ...@@ -1519,11 +1519,15 @@ build_abuildrepo() {
# check early if we have abuild key # check early if we have abuild key
abuild-sign --installed abuild-sign --installed
logcmd "building $repo/$pkgname-$pkgver-r$pkgrel" 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 \ for part in sanitycheck builddeps clean fetch unpack prepare mkusers build \
$_check rootpkg; do $_check rootpkg; do
runpart $part runpart $part
done 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 cleanup $CLEANUP
fi fi
update_abuildrepo_index update_abuildrepo_index
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment