Move package_errors.log to the end.
[grml-live.git] / grml-live
index 3d74d29..0c35a3a 100755 (executable)
--- a/grml-live
+++ b/grml-live
@@ -1094,6 +1094,14 @@ fi
 # }}}
 
 # finalize {{{
+CHECKLOG=/var/log/fai/$HOSTNAME/last
+# package validator
+if [ -r "$CHECKLOG/package_errors.log" ] && grep -q '[a-z]' "$CHECKLOG/package_errors.log" ; then
+   ewarn "The following packages were requested for installation but could not be processed:"
+   cat $CHECKLOG/package_errors.log
+   eend 0
+fi
+
 [ -n "$start_seconds" ] && SECONDS="$[$(cut -d . -f 1 /proc/uptime)-$start_seconds]" || SECONDS="unknown"
 einfo "Successfully finished execution of $PN [$(date) - running ${SECONDS} seconds]" ; eend 0
 log "Successfully finished execution of $PN [$(date) - running ${SECONDS} seconds]"