summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2012-09-27 09:36:13 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-27 16:30:00 +0100
commitb02d334e0e6a19a1bf3550add68f5770a835c772 (patch)
tree802249d3e7f5e6bedee94e822420a20d57b65ea5
parentc5b6e3be0923b0af16f4854264fae104470bacf7 (diff)
downloadopenembedded-core-b02d334e0e6a19a1bf3550add68f5770a835c772.tar.gz
openembedded-core-b02d334e0e6a19a1bf3550add68f5770a835c772.tar.bz2
openembedded-core-b02d334e0e6a19a1bf3550add68f5770a835c772.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 f519555d59..4c06fe87e2 100755
--- a/scripts/sstate-cache-management.sh
+++ b/scripts/sstate-cache-management.sh
@@ -174,7 +174,7 @@ remove_duplicated () {
topdir=$(dirname $oe_core_dir)
tunedirs="`find $topdir/meta* ${oe_core_dir}/meta* $layers -path '*/meta*/conf/machine/include'`"
[ -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' | sed -e 's/.*\///' -e 's/.conf$//'`"
+ 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'`
# Add the qemu and native archs
# Use the "_" to substitute "-", e.g., x86-64 to x86_64