mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-27 20:56:55 +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"
|
show_only="false"
|
||||||
write_logs="no"
|
write_logs="no"
|
||||||
log_path="$BUILD/logs"
|
log_path="$BUILD/logs"
|
||||||
|
summary_file="/dev/null"
|
||||||
export BUILD_INDENT=$((${BUILD_INDENT:-1}+$BUILD_INDENT_SIZE))
|
export BUILD_INDENT=$((${BUILD_INDENT:-1}+$BUILD_INDENT_SIZE))
|
||||||
|
|
||||||
# read addons from parameter list
|
# read addons from parameter list
|
||||||
@ -264,6 +265,8 @@ case "$write_logs" in
|
|||||||
esac
|
esac
|
||||||
if [ -n "$log_path" ]; then
|
if [ -n "$log_path" ]; then
|
||||||
mkdir -p "$log_path"
|
mkdir -p "$log_path"
|
||||||
|
summary_file="$log_path/addon-summary.log"
|
||||||
|
rm -f $summary_file
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check environment and create toolchain
|
# check environment and create toolchain
|
||||||
@ -301,10 +304,12 @@ for addon in $(tr " " "\n" <<< $addons | sort -u); do
|
|||||||
if [ ${PIPESTATUS[0]} != 0 ]; then
|
if [ ${PIPESTATUS[0]} != 0 ]; then
|
||||||
addons_failed+="$addon "
|
addons_failed+="$addon "
|
||||||
printf "$(print_color CLR_ERROR "ADDON FAILED $addon")\n" ' '>&$SILENT_OUT
|
printf "$(print_color CLR_ERROR "ADDON FAILED $addon")\n" ' '>&$SILENT_OUT
|
||||||
|
echo "failed: ${addon}" >> $summary_file
|
||||||
else
|
else
|
||||||
if [ "$remove_success_logs" = "true" ]; then
|
if [ "$remove_success_logs" = "true" ]; then
|
||||||
rm -f $log_file
|
rm -f $log_file
|
||||||
fi
|
fi
|
||||||
|
echo "success: ${addon}" >> $summary_file
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user