base.bbclass: make showing display revision work with the mtn 0.30 workspace format
authorMichael Lauer <mickey@vanille-media.de>
Thu, 12 Oct 2006 10:53:31 +0000 (10:53 +0000)
committerMichael Lauer <mickey@vanille-media.de>
Thu, 12 Oct 2006 10:53:31 +0000 (10:53 +0000)
classes/base.bbclass

index 0c62568..a9b61d2 100644 (file)
@@ -505,6 +505,9 @@ python base_eventhandler() {
                monotone_revision = "<unknown>"
                try:
                        monotone_revision = file( "%s/_MTN/revision" % path_to_packages ).read().strip()
+                       if monotone_revision.startswith( "format_version" ):
+                               monotone_revision_words = monotone_revision.split()
+                               monotone_revision = monotone_revision_words[ monotone_revision_words.index( "old_revision" )+1][1:-1]
                except IOError:
                        pass
                bb.data.setVar( 'OE_REVISION', monotone_revision, e.data )