base.bbclass: fix showing MT revision by using rindex instead of index to get the...
authorMichael Lauer <mickey@vanille-media.de>
Tue, 9 May 2006 12:29:17 +0000 (12:29 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Tue, 9 May 2006 12:29:17 +0000 (12:29 +0000)
classes/base.bbclass

index 56008e6..c0741a8 100644 (file)
@@ -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()