Skip to contentSkip to conversation

yocto-bsp: Add missing format specifier in bblayers error message

PATCH In review Bastien JAUNY 2 participants 2 messages Nov 13, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 yocto-bsp: Add missing format specifier in bblayers error message

If the build environment is misconfigured (e.g. a bad path for a layer in bblayers.conf) the yocto-bsp script crashes with a standard python error, not very explicit. This fixes the problem.

---
 scripts/lib/bsp/kernel.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/lib/bsp/kernel.py +0 -1
index 5696ca7..ba68b60 100644
@@ -62,7 +62,7 @@ def find_bblayers():
             break
 
     if not bblayers:
-        print "Couldn't find BBLAYERS in 'bitbake -e' output, exiting."

% \

+        print "Couldn't find BBLAYERS in %s output, exiting." % \
             bitbake_env_cmd
         sys.exit(1)
Signature · 1 line
1.7.10.4
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Bastien JAUNY

If the build environment is misconfigured (e.g. a bad path for a layer in bblayers.conf) the yocto-bsp script crashes with a standard python error, not very explicit. This fixes the problem.

Quoted 18 lines
---
 scripts/lib/bsp/kernel.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/lib/bsp/kernel.py +1 -1
index 5696ca7..ba68b60 100644
@@ -62,7 +62,7 @@ def find_bblayers():
             break
 
     if not bblayers:
-        print "Couldn't find BBLAYERS in 'bitbake -e' output, exiting."
 % \
+        print "Couldn't find BBLAYERS in %s output, exiting." % \
             bitbake_env_cmd
         sys.exit(1)