[oe] [PATCH 3/3] base.bbclass: fix base_get_scmbasepath() to look for recipes/ and fall back to packages/ while parsing BBFILES
Denys Dmytriyenko
denis at denix.org
Mon Mar 16 23:32:44 UTC 2009
Signed-off-by: Denys Dmytriyenko <denis at denix.org>
---
classes/base.bbclass | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/classes/base.bbclass b/classes/base.bbclass
index 18afc1a..0848870 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -773,7 +773,13 @@ python base_do_unpack() {
def base_get_scmbasepath(d):
import bb
path_to_bbfiles = bb.data.getVar( 'BBFILES', d, 1 ).split()
- return path_to_bbfiles[0][:path_to_bbfiles[0].rindex( "packages" )]
+
+ try:
+ index = path_to_bbfiles[0].rindex( "recipes" )
+ except ValueError:
+ index = path_to_bbfiles[0].rindex( "packages" )
+
+ return path_to_bbfiles[0][:index]
def base_get_metadata_monotone_branch(d):
monotone_branch = "<unknown>"
--
1.6.0.6
More information about the Openembedded-devel
mailing list