summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2012-10-09 11:30:16 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-10 15:06:52 +0100
commitbde88116d9d7e86ca7ecac4cf990689f972b0b1c (patch)
treeb4b2809a81d16706d2588f2f5577838788559404
parent566c6101cc7a8d90973eb22478ffc77eac23f81c (diff)
downloadopenembedded-core-bde88116d9d7e86ca7ecac4cf990689f972b0b1c.tar.gz
openembedded-core-bde88116d9d7e86ca7ecac4cf990689f972b0b1c.tar.bz2
openembedded-core-bde88116d9d7e86ca7ecac4cf990689f972b0b1c.zip
sstate-cache-management: hide error message when one of possible layer location doesn't exist
* fixes [YOCTO #3116] Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xscripts/sstate-cache-management.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/sstate-cache-management.sh b/scripts/sstate-cache-management.sh
index 4c06fe87e2..551d2f267d 100755
--- a/scripts/sstate-cache-management.sh
+++ b/scripts/sstate-cache-management.sh
@@ -172,7 +172,7 @@ remove_duplicated () {
echo -n "Figuring out the archs in the layers ... "
oe_core_dir=$(dirname $(dirname $(readlink -e $0)))
topdir=$(dirname $oe_core_dir)
- tunedirs="`find $topdir/meta* ${oe_core_dir}/meta* $layers -path '*/meta*/conf/machine/include'`"
+ tunedirs="`find $topdir/meta* ${oe_core_dir}/meta* $layers -path '*/meta*/conf/machine/include' 2>/dev/null`"
[ -n "$tunedirs" ] || echo_error "Can't find the tune directory"
all_machines="`find $topdir/meta* ${oe_core_dir}/meta* $layers -path '*/meta*/conf/machine/*' -name '*.conf' 2>/dev/null | sed -e 's/.*\///' -e 's/.conf$//'`"
all_archs=`grep -r -h "^AVAILTUNES .*=" $tunedirs | sed -e 's/.*=//' -e 's/\"//g'`