Skip to contentSkip to conversation

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

PATCH Applied Martin Jansa 2 participants 2 messages Sep 27, 2012

lore
Share & tools
lore
#0 lore raw

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

* fixes [YOCTO #3116]

---
 scripts/sstate-cache-management.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/sstate-cache-management.sh +1 -1
index f519555..4c06fe8 100755
@@ -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
Applied
#1 lore raw
Quoted 13 lines · Martin Jansa

* fixes [YOCTO #3116]

---
  scripts/sstate-cache-management.sh | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
scripts/sstate-cache-management.sh +0 -0
index f519555..4c06fe8 100755

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!