mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
distro-tool: avoid sourcing non-existing packages
This commit is contained in:
parent
4acd149ba6
commit
7653e538cf
@ -726,7 +726,7 @@ get_libreelec_branch() {
|
|||||||
get_libreelec_option() {
|
get_libreelec_option() {
|
||||||
local variable="$1"
|
local variable="$1"
|
||||||
cd $LIBREELEC_DIR
|
cd $LIBREELEC_DIR
|
||||||
. config/options
|
source config/options ""
|
||||||
echo "${!variable}"
|
echo "${!variable}"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -759,13 +759,18 @@ generate_work() {
|
|||||||
# Generate workload using multiple threads
|
# Generate workload using multiple threads
|
||||||
init_progress
|
init_progress
|
||||||
|
|
||||||
tcount=0
|
(
|
||||||
while [ : ]; do
|
cd $LIBREELEC_DIR
|
||||||
tcount=$((tcount + 1))
|
source config/options ""
|
||||||
[ ${tcount} -gt ${WORKER_MAX} ] && break
|
|
||||||
generate_work_worker ${pcount} ${tcount} ${revision} &
|
tcount=0
|
||||||
done
|
while [ : ]; do
|
||||||
wait
|
tcount=$((tcount + 1))
|
||||||
|
[ ${tcount} -gt ${WORKER_MAX} ] && break
|
||||||
|
generate_work_worker ${pcount} ${tcount} ${revision} &
|
||||||
|
done
|
||||||
|
wait
|
||||||
|
)
|
||||||
|
|
||||||
end_progress
|
end_progress
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user