mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
buildsystem: add GETPKG history event
This commit is contained in:
parent
cff7ea1ab8
commit
7d84fbe6fa
@ -18,6 +18,8 @@ _get_file_already_downloaded && exit 0
|
|||||||
# At this point, we need to download something...
|
# At this point, we need to download something...
|
||||||
build_msg "CLR_GET" "GET" "${1} (archive)" "indent"
|
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}"
|
PACKAGE_MIRROR="${DISTRO_MIRROR}/${PKG_NAME}/${PKG_SOURCE_NAME}"
|
||||||
[ "${VERBOSE}" != "yes" ] && WGET_OPT=-q
|
[ "${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}"
|
WGET_CMD="wget --output-file=- --timeout=30 --tries=3 --passive-ftp --no-check-certificate -c ${WGET_OPT} --progress=bar:force --show-progress -O ${PACKAGE}"
|
||||||
|
@ -2,3 +2,5 @@
|
|||||||
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||||
|
|
||||||
build_msg "CLR_GET" "GET" "${1} (file)" "indent"
|
build_msg "CLR_GET" "GET" "${1} (file)" "indent"
|
||||||
|
|
||||||
|
pkg_lock_status "GETPKG" "${PKG_NAME}" "unpack" "processing package file..."
|
||||||
|
@ -44,6 +44,8 @@ _get_repo_already_downloaded && exit 0
|
|||||||
# At this point, we need to download something...
|
# At this point, we need to download something...
|
||||||
build_msg "CLR_GET" "GET" "${1} (git)" "indent"
|
build_msg "CLR_GET" "GET" "${1} (git)" "indent"
|
||||||
|
|
||||||
|
pkg_lock_status "GETPKG" "${PKG_NAME}" "unpack" "processing package repository..."
|
||||||
|
|
||||||
rm -f "${STAMP_URL}" "${STAMP_SHA}"
|
rm -f "${STAMP_URL}" "${STAMP_SHA}"
|
||||||
|
|
||||||
GIT_CLONE_PARAMS=""
|
GIT_CLONE_PARAMS=""
|
||||||
|
@ -63,7 +63,7 @@ for event in events:
|
|||||||
"start": 0.0,
|
"start": 0.0,
|
||||||
"total": 0.0})
|
"total": 0.0})
|
||||||
|
|
||||||
if event.status in ["ACTIVE", "MUTEX"]:
|
if event.status in ["ACTIVE", "MUTEX", "GETPKG"]:
|
||||||
if slot["active"] == False:
|
if slot["active"] == False:
|
||||||
active += 1
|
active += 1
|
||||||
concurrent = concurrency.get(active, {"start": 0.0, "total": 0.0})
|
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("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 )")
|
print("#Rank Slot Usage ( Pct ) # of Slots Usage ( Pct )")
|
||||||
|
|
||||||
lines = []
|
lines = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user