[Openembedded-users] [PATCH 2/2] Raise a more descriptive exception when BBFILES is undefined
Ben Gamari
bgamari at gmail.com
Wed Mar 4 17:45:24 UTC 2009
Previously an index out of range exception would be raised. It took
several minutes to finally pin-point this to a configuration issue
---
classes/base.bbclass | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/classes/base.bbclass b/classes/base.bbclass
index fe8f7bc..0c3e724 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -773,6 +773,8 @@ python base_do_unpack() {
def base_get_scmbasepath(d):
import bb
path_to_bbfiles = bb.data.getVar( 'BBFILES', d, 1 ).split()
+ if len(path_to_bbfiles) == 0:
+ raise bb.build.FuncFailed('BBFILES variable missing')
return path_to_bbfiles[0][:path_to_bbfiles[0].rindex( "packages" )]
def base_get_metadata_monotone_branch(d):
--
1.6.1.3
More information about the Openembedded-users
mailing list