From: Martin Jansa Date: Tue, 9 Oct 2012 09:30:16 +0000 (+0200) Subject: sstate-cache-management: hide error message when one of possible layer location doesn... X-Git-Tag: rev_ivi_2015_02_04~15217 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c34faf87ae8eba7dfac4d081e8bc5ed5dc72de06;p=scm%2Fbb%2Ftizen-distro.git sstate-cache-management: hide error message when one of possible layer location doesn't exist * fixes [YOCTO #3116] (From OE-Core rev: bde88116d9d7e86ca7ecac4cf990689f972b0b1c) Signed-off-by: Martin Jansa Signed-off-by: Richard Purdie --- diff --git a/scripts/sstate-cache-management.sh b/scripts/sstate-cache-management.sh index 4c06fe8..551d2f2 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'`