sstate-cache-management: hide error message when one of possible layer location doesn't exist
PATCH 1/1 sstate-cache-management: hide error message when one of possible layer location doesn't exist
* fixes [YOCTO #3116]
Signed-off-by Martin Jansa <[email protected]>
--- scripts/sstate-cache-management.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/sstate-cache-management.sh +1 -1
@@ -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
Signature · 1 line
1.7.12
Saul Wold
AppliedQuoted 13 lines · Martin Jansa
* fixes [YOCTO #3116]
Signed-off-by Martin Jansa <[email protected]>--- scripts/sstate-cache-management.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)scripts/sstate-cache-management.sh +0
-0
scripts/sstate-cache-management.sh remove_duplicated () { · line 180
Quoted 8 lines
scripts/sstate-cache-management.sh +1
-1@@ -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
Merged into OE-Core
Thanks
Sau!