From 749c00d53374420c1e120d32261fa5336e802942 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott <ian@iandouglasscott.com> Date: Mon, 12 Jun 2017 08:34:21 -0700 Subject: [PATCH] Have repo.sh check if recipe/patches have been updated --- repo.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/repo.sh b/repo.sh index 4b54c566f..25b5ad469 100755 --- a/repo.sh +++ b/repo.sh @@ -39,7 +39,8 @@ do else TIME_BUILD="$(find recipes/$recipe/build -type f -not -path '*/.git*' -printf "%Ts\n" | sort -nr | head -n 1)" TIME_STAGE="$(stat -c "%Y" recipes/$recipe/stage.tar)" - if [ "$TIME_BUILD" -gt "$TIME_STAGE" ] + TIME_RECIPE="$(find $(git ls-tree -r --name-only HEAD recipes/$recipe) -printf '%Ts\n' | sort -nr | head -n 1)" + if [ "$TIME_BUILD" -gt "$TIME_STAGE" -o "$TIME_RECIPE" -gt "$TIME_STAGE" ] then echo -e "\033[01;38;5;155mrepo - rebuilding $recipe\033[0m" >&2 ./cook.sh "$recipe" untar unstage update build stage tar -- GitLab