summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2011-05-10 16:48:51 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-11 15:38:33 +0100
commitf21b091e3447f6fe8dfde8897799714a73a2c178 (patch)
tree4c4070426c88f00adc14eac6b418885e8ae9a9af /meta/classes
parent0504d36646f8def4829250a9eee0cf9bac3b756e (diff)
downloadpoky-f21b091e3447f6fe8dfde8897799714a73a2c178.tar.gz
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>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/metadata_scm.bbclass5
1 files changed, 1 insertions, 4 deletions
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):
25 return rev.strip() 25 return rev.strip()
26 26
27 return "<unknown>" 27 return "<unknown>"
28
29
30 28
31def base_get_scmbasepath(d): 29def base_get_scmbasepath(d):
32 path_to_bbfiles = bb.data.getVar( 'BBFILES', d, 1 ).split() 30 return bb.data.getVar( 'COREBASE', d, 1 )
33 return path_to_bbfiles[0][:path_to_bbfiles[0].rindex( "packages" )]
34 31
35def base_get_metadata_monotone_branch(path, d): 32def base_get_metadata_monotone_branch(path, d):
36 monotone_branch = "<unknown>" 33 monotone_branch = "<unknown>"