diff options
author | Michael Lauer <mickey@vanille-media.de> | 2006-05-09 12:29:17 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-05-09 12:29:17 +0000 |
commit | d2355d4ce22e938e111d618c4f599e64ecc24977 (patch) | |
tree | a6432660f95fd18d61c3c94039d782c677362e14 /classes | |
parent | c272706abf5527025d1d84ca064d03cec71cd118 (diff) |
base.bbclass: fix showing MT revision by using rindex instead of index to get the position of the MT directory
Diffstat (limited to 'classes')
-rw-r--r-- | classes/base.bbclass | 3 |
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() |