Patchwork sstate-cache-management: hide error message when one of possible layer location doesn't exist

login
register
mail settings
Submitter Martin Jansa
Date Oct. 9, 2012, 9:30 a.m.
Message ID <1349775016-8300-1-git-send-email-Martin.Jansa@gmail.com>
Download mbox | patch
Permalink /patch/37993/
State Accepted
Commit bde88116d9d7e86ca7ecac4cf990689f972b0b1c
Headers show

Comments

Martin Jansa - Oct. 9, 2012, 9:30 a.m.
* fixes [YOCTO #3116]

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 scripts/sstate-cache-management.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

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'`