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: 2011-1~1502 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=17c8c41b837d66bd3cc02c4c60e62dcfc13b80a8;p=openembedded-core.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 7112ad512b..99ac05c18d 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 = ""