Repo will now re-prepare when sysroot is deleted

This commit is contained in:
Jeremy Soller 2020-05-21 20:37:18 -06:00
parent 397cf47ad2
commit 275e5dbae6
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1

View File

@ -40,6 +40,10 @@ do
then
echo -e "\033[01;38;5;155mrepo - preparing $recipe\033[0m" >&2
./cook.sh "$recipe" prepare
elif [ ! -d "recipes/$recipe/sysroot/" ]
then
echo -e "\033[01;38;5;155mrepo - repreparing $recipe\033[0m" >&2
./cook.sh "$recipe" unprepare prepare
else
TIME_SOURCE="$($FIND recipes/$recipe/source/ -type f -not -path '*/.git*' -printf "%Ts\n" | sort -nr | head -n 1)"
TIME_BUILD="$($FIND recipes/$recipe/build/ -type f -not -path '*/.git*' -printf "%Ts\n" | sort -nr | head -n 1)"