summaryrefslogtreecommitdiffstats
path: root/scripts/sstate-cache-management.sh
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2013-02-26 15:57:16 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-28 23:15:47 +0000
commita18e02b01fdf19b98534fb8a8824069de89d3d42 (patch)
tree2c55519735602e7db8e3be5a5a8af09579a434ca /scripts/sstate-cache-management.sh
parent2032301ef40d13ce7ceb17bce982409eadc3a670 (diff)
downloadpoky-a18e02b01fdf19b98534fb8a8824069de89d3d42.tar.gz
sstate-cache-management.sh: don't hardcode available sstate_suffixes
Don't hardcode available sstate_suffixes(it misses `packagedata'), find them dynamically in $sstate_list. [YOCTO #3635] (From OE-Core rev: 26adfcb8c33fe62f5e15c3591efc670d70cbb5b7) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/sstate-cache-management.sh')
-rwxr-xr-xscripts/sstate-cache-management.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/sstate-cache-management.sh b/scripts/sstate-cache-management.sh
index f198ea1d82..24384ef89e 100755
--- a/scripts/sstate-cache-management.sh
+++ b/scripts/sstate-cache-management.sh
@@ -185,11 +185,16 @@ remove_duplicated () {
185 | sed -e 's/-/_/g' -e 's/ /\n/g' | sort -u) 185 | sed -e 's/-/_/g' -e 's/ /\n/g' | sort -u)
186 echo "Done" 186 echo "Done"
187 187
188 sstate_suffixes="deploy-rpm deploy-ipk deploy-deb deploy package populate-lic populate-sysroot"
189
190 # Save all the sstate files in a file 188 # Save all the sstate files in a file
191 sstate_list=`mktemp` || exit 1 189 sstate_list=`mktemp` || exit 1
192 find $cache_dir -name 'sstate-*.tgz' >$sstate_list 190 find $cache_dir -name 'sstate-*.tgz' >$sstate_list
191
192 echo -n "Figuring out the suffixes in the sstate cache dir ... "
193 sstate_suffixes="`sed 's/.*_\([^_]*\)\.tgz$/\1/g' $sstate_list | sort -u`"
194 echo "Done"
195 echo "The following suffixes have been found in the cache dir:"
196 echo $sstate_suffixes
197
193 echo -n "Figuring out the archs in the sstate cache dir ... " 198 echo -n "Figuring out the archs in the sstate cache dir ... "
194 for arch in $all_archs; do 199 for arch in $all_archs; do
195 grep -q "\-$arch-" $sstate_list 200 grep -q "\-$arch-" $sstate_list