Patchwork scripts/sstate-cache-management.sh: Fix stamp handling after recent layout change

login
register
mail settings
Submitter Richard Purdie
Date Nov. 23, 2012, 8:20 p.m.
Message ID <1353702048.7657.1.camel@ted>
Download mbox | patch
Permalink /patch/39549/
State Accepted
Commit 56e3fcc387512ae0225c359b86b9025ae945b3c9
Headers show

Comments

Richard Purdie - Nov. 23, 2012, 8:20 p.m.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Patch

diff --git a/scripts/sstate-cache-management.sh b/scripts/sstate-cache-management.sh
index 551d2f2..7d81daf 100755
--- a/scripts/sstate-cache-management.sh
+++ b/scripts/sstate-cache-management.sh
@@ -294,7 +294,7 @@  rm_by_stamps (){
   for i in $suffixes; do
       # There is no "\.sigdata" but "_setcene" when it is mirrored
       # from the SSTATE_MIRRORS, use them to figure out the sum.
-      sums=`find $stamps -maxdepth 2 -name "*.do_$i.*" \
+      sums=`find $stamps -maxdepth 3 -name "*.do_$i.*" \
         -o -name "*.do_${i}_setscene.*" | \
         sed -ne 's#.*_setscene\.##p' -e 's#.*\.sigdata\.##p' | \
         sed -e 's#\..*##' | sort -u`