distro-tool: avoid sourcing non-existing packages

This commit is contained in:
MilhouseVH 2017-12-20 06:16:14 +00:00
parent 4acd149ba6
commit 7653e538cf

View File

@ -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,6 +759,10 @@ generate_work() {
# Generate workload using multiple threads # Generate workload using multiple threads
init_progress init_progress
(
cd $LIBREELEC_DIR
source config/options ""
tcount=0 tcount=0
while [ : ]; do while [ : ]; do
tcount=$((tcount + 1)) tcount=$((tcount + 1))
@ -766,6 +770,7 @@ generate_work() {
generate_work_worker ${pcount} ${tcount} ${revision} & generate_work_worker ${pcount} ${tcount} ${revision} &
done done
wait wait
)
end_progress end_progress