return ${failed}
}
+check_changed_rootfiles() {
+ local files=(
+ $(grep --files-with-matches -r "^+" "${LOG_DIR}" --exclude="_*" | sort)
+ )
+
+ # If we have no matches, there is nothing to do
+ [ "${#files[@]}" -eq 0 ] && return 0
+
+ print_line "Packages have created new files"
+ print_status WARN
+
+ local file
+ for file in ${files[@]}; do
+ print_line " ${file##*/}"
+ print_status WARN
+ done
+
+ return 0
+}
+
# Set BASEDIR
readonly BASEDIR="$(find_base)"
exiterror "Rootfiles are inconsistent"
fi
+ check_changed_rootfiles
+
print_build_summary $(( SECONDS - START_TIME ))
;;
tail)
prepareenv --network
entershell
;;
+check)
+ check_changed_rootfiles
+ ;;
clean)
print_line "Cleaning build directory..."