From d2355d4ce22e938e111d618c4f599e64ecc24977 Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Tue, 9 May 2006 12:29:17 +0000 Subject: base.bbclass: fix showing MT revision by using rindex instead of index to get the position of the MT directory --- classes/base.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 = "" try: monotone_revision = file( "%s/MT/revision" % path_to_packages ).read().strip() -- cgit v1.2.3