From: Michael Lauer Date: Thu, 12 Oct 2006 10:53:31 +0000 (+0000) Subject: base.bbclass: make showing display revision work with the mtn 0.30 workspace format X-Git-Tag: Release-2010-05/1~9453^2~567^2~215 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86123c1f8c95b10a1aee30b96b3ed86dfe7a6b88;p=openembedded.git base.bbclass: make showing display revision work with the mtn 0.30 workspace format --- diff --git a/classes/base.bbclass b/classes/base.bbclass index 0c62568107..a9b61d26b1 100644 --- a/classes/base.bbclass +++ b/classes/base.bbclass @@ -505,6 +505,9 @@ python base_eventhandler() { monotone_revision = "" 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 )