From a165c670fdf2911af8a7e6bd5ef53a74cb2f5de4 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Thu, 22 Jun 2023 09:56:48 -0500 Subject: [PATCH] 3rdparty: Fix revision check * Add a few nice to haves Change-Id: I53e1fd7d067357af5ad625ebf86de3ee68903cbe --- 3rdparty/kallisti5/validateBootstrapRepo | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/3rdparty/kallisti5/validateBootstrapRepo b/3rdparty/kallisti5/validateBootstrapRepo index 9db8f48053..11a8369b9b 100755 --- a/3rdparty/kallisti5/validateBootstrapRepo +++ b/3rdparty/kallisti5/validateBootstrapRepo @@ -20,9 +20,9 @@ if [[ ! -d $REPOFILES ]]; then fi RESULT=0 -for f in $(find $REPOFILES -print); do +for f in $(find $REPOFILES -maxdepth 1 -type f -print); do ARCHITECTURE=$(cat $f | tr '\n' ' ' | awk '{ print $4 } ') - echo "================ Scanning $ARCHITECTURE" + echo "================ Scanning $ARCHITECTURE / $f" REPO_EXPECT=$(cat $f | grep -v "#" | grep '-' | grep 'bootstrap' | grep -v 'bootstrap_') for i in $REPO_EXPECT; do PACKAGE=$(echo $i | cut -d'-' -f1) @@ -36,12 +36,13 @@ for f in $(find $REPOFILES -print); do RESULT=1 continue fi - grep "REVISION=$REV" $RECIPE > /dev/null - #echo $RECIPE + REV=$(echo $i | cut -d'-' -f3) + grep "REVISION=\"$REV\"" $RECIPE > /dev/null if [[ $? -eq 0 ]]; then echo " $ARCHITECTURE $i... OK" else - echo " $ARCHITECTURE $i... ERROR (Incorrect revision!)" + FOUND_REV=$(grep "REVISION=" $RECIPE | cut -d'=' -f2) + echo " $ARCHITECTURE $i... ERROR (Incorrect revision! Found $FOUND_REV!)" RESULT=1 fi #echo $i - $PACKAGE