summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-rw-r--r--classes/base.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass
index 56008e66cc..c0741a86aa 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -513,7 +513,8 @@ python base_eventhandler() {
if name.startswith("BuildStarted"):
bb.data.setVar( 'BB_VERSION', bb.__version__, e.data )
path_to_bbfiles = bb.data.getVar( 'BBFILES', e.data, 1 )
- path_to_packages = path_to_bbfiles[:path_to_bbfiles.index( "packages" )]
+ print "path_to_bbfiles = ", path_to_bbfiles
+ path_to_packages = path_to_bbfiles[:path_to_bbfiles.rindex( "packages" )]
monotone_revision = "<unknown>"
try:
monotone_revision = file( "%s/MT/revision" % path_to_packages ).read().strip()