Skip to content

Commit

Permalink
base.bbclass: fix base_get_scmbasepath() to look for recipes/ and fal…
Browse files Browse the repository at this point in the history
…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
denix0 committed Mar 17, 2009
1 parent ee7fe8a commit 01a3938
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion classes/base.bbclass
Expand Up @@ -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>"
Expand Down

0 comments on commit 01a3938

Please sign in to comment.