mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
create_addon now also writes a summary when log writing is used.
on special wish of @cvh
This commit is contained in:
parent
b62904b717
commit
58b17b1a74
@ -238,6 +238,7 @@ addons_drop=""
|
||||
show_only="false"
|
||||
write_logs="no"
|
||||
log_path="$BUILD/logs"
|
||||
summary_file="/dev/null"
|
||||
export BUILD_INDENT=$((${BUILD_INDENT:-1}+$BUILD_INDENT_SIZE))
|
||||
|
||||
# read addons from parameter list
|
||||
@ -264,6 +265,8 @@ case "$write_logs" in
|
||||
esac
|
||||
if [ -n "$log_path" ]; then
|
||||
mkdir -p "$log_path"
|
||||
summary_file="$log_path/addon-summary.log"
|
||||
rm -f $summary_file
|
||||
fi
|
||||
|
||||
# check environment and create toolchain
|
||||
@ -301,10 +304,12 @@ for addon in $(tr " " "\n" <<< $addons | sort -u); do
|
||||
if [ ${PIPESTATUS[0]} != 0 ]; then
|
||||
addons_failed+="$addon "
|
||||
printf "$(print_color CLR_ERROR "ADDON FAILED $addon")\n" ' '>&$SILENT_OUT
|
||||
echo "failed: ${addon}" >> $summary_file
|
||||
else
|
||||
if [ "$remove_success_logs" = "true" ]; then
|
||||
rm -f $log_file
|
||||
fi
|
||||
echo "success: ${addon}" >> $summary_file
|
||||
fi
|
||||
done
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user