---
bin/misc-functions.sh | 26 ++
1 file changed, 26 insertions(+)
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
index f24e78c..0a8ece0 100755
--- a/bin/misc-functions.sh
+++ b/bin/misc-functions.sh
@@ -875,6 +875,32 @@ install_qa_check() {
[[ ${abort} == yes ]] die multilib-strict check failed!
fi
+
+ local pngfix=$(type -P pngfix)
+ if [[ -n ${pngfix} ]] ; then
+ local pngout=()
+ local next
+
+ while read -r -a pngout ; do
+ local error
+
+ case ${pngout[1]} in
+ CHK)
+ error='invalid checksum'
+ ;;
+ TFB)
+ error='broken IDAT window length'
+ ;;
+ esac
+
+ if [[ -n ${error} ]] ; then
+ if [[ -z ${next} ]] ; then
+ eqawarn QA Notice: broken .png files
found:
+ fi
+ eqawarn${pngout[@]:7}: ${error}
+ fi
+ done (find ${ED} -name '*.png' -exec ${pngfix} {} +)
+ fi
}
install_qa_check_prefix() {
--
2.0.2