From 86123c1f8c95b10a1aee30b96b3ed86dfe7a6b88 Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Thu, 12 Oct 2006 10:53:31 +0000 Subject: base.bbclass: make showing display revision work with the mtn 0.30 workspace format --- classes/base.bbclass | 3 +++ 1 file changed, 3 insertions(+) (limited to 'classes') 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 ) -- cgit v1.2.3