metadata_scm.bbclass: Use COREBASE to grok for SCM operations
(From OE-Core rev: 17c8c41b837d66bd3cc02c4c60e62dcfc13b80a8) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
0504d36646
commit
f21b091e34
|
@ -25,12 +25,9 @@ def base_detect_branch(d):
|
|||
return rev.strip()
|
||||
|
||||
return "<unknown>"
|
||||
|
||||
|
||||
|
||||
def base_get_scmbasepath(d):
|
||||
path_to_bbfiles = bb.data.getVar( 'BBFILES', d, 1 ).split()
|
||||
return path_to_bbfiles[0][:path_to_bbfiles[0].rindex( "packages" )]
|
||||
return bb.data.getVar( 'COREBASE', d, 1 )
|
||||
|
||||
def base_get_metadata_monotone_branch(path, d):
|
||||
monotone_branch = "<unknown>"
|
||||
|
|
Loading…
Reference in New Issue