Skip to content
Browse files

base.bbclass: fix base_get_scmbasepath() to look for recipes/ and fal…

…l back to packages/ while parsing BBFILES

Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
  • Loading branch information...
1 parent ee7fe8a commit 01a393838b0e87cde07a81068965064e858c9155 @denix0 denix0 committed
Showing with 7 additions and 1 deletion.
  1. +7 −1 classes/base.bbclass
View
8 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>"

0 comments on commit 01a3938

Please sign in to comment.
Something went wrong with that request. Please try again.