From: Khem Raj Date: Tue, 10 May 2011 23:48:51 +0000 (-0700) Subject: metadata_scm.bbclass: Use COREBASE to grok for SCM operations X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~45658 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17c8c41b837d66bd3cc02c4c60e62dcfc13b80a8;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git metadata_scm.bbclass: Use COREBASE to grok for SCM operations Signed-off-by: Khem Raj --- diff --git a/meta/classes/metadata_scm.bbclass b/meta/classes/metadata_scm.bbclass index 7112ad512b1..99ac05c18d6 100644 --- a/meta/classes/metadata_scm.bbclass +++ b/meta/classes/metadata_scm.bbclass @@ -25,12 +25,9 @@ def base_detect_branch(d): return rev.strip() return "" - - 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 = ""