buildsystem: add GETPKG history event

This commit is contained in:
MilhouseVH 2019-07-06 23:26:36 +01:00
parent 6fdbbd8796
commit 5895dc069f
4 changed files with 8 additions and 2 deletions

View File

@ -18,6 +18,8 @@ _get_file_already_downloaded && exit 0
# At this point, we need to download something...
build_msg "CLR_GET" "GET" "${1} (archive)" "indent"
pkg_lock_status "GETPKG" "${PKG_NAME}" "unpack" "downloading package..."
PACKAGE_MIRROR="${DISTRO_MIRROR}/${PKG_NAME}/${PKG_SOURCE_NAME}"
[ "${VERBOSE}" != "yes" ] && WGET_OPT=-q
WGET_CMD="wget --output-file=- --timeout=30 --tries=3 --passive-ftp --no-check-certificate -c ${WGET_OPT} --progress=bar:force --show-progress -O ${PACKAGE}"

View File

@ -2,3 +2,5 @@
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
build_msg "CLR_GET" "GET" "${1} (file)" "indent"
pkg_lock_status "GETPKG" "${PKG_NAME}" "unpack" "processing package file..."

View File

@ -44,6 +44,8 @@ _get_repo_already_downloaded && exit 0
# At this point, we need to download something...
build_msg "CLR_GET" "GET" "${1} (git)" "indent"
pkg_lock_status "GETPKG" "${PKG_NAME}" "unpack" "processing package repository..."
rm -f "${STAMP_URL}" "${STAMP_SHA}"
GIT_CLONE_PARAMS=""

View File

@ -63,7 +63,7 @@ for event in events:
"start": 0.0,
"total": 0.0})
if event.status in ["ACTIVE", "MUTEX"]:
if event.status in ["ACTIVE", "MUTEX", "GETPKG"]:
if slot["active"] == False:
active += 1
concurrent = concurrency.get(active, {"start": 0.0, "total": 0.0})
@ -98,7 +98,7 @@ print("Total Build Time: %s\n" % secs_to_hms(elapsed, blankzero=False))
print("Peak concurrency: %d out of %d slots\n" % (peak, len(slots)))
print("Slot usage (time in ACTIVE state): | Concurrency breakdown:\n")
print("Slot usage (time in an \"active\" state): | Concurrency breakdown:\n")
print("#Rank Slot Usage ( Pct ) # of Slots Usage ( Pct )")
lines = []