diff options
author | Michael Lauer <mickey@vanille-media.de> | 2006-10-12 10:53:31 +0000 |
---|---|---|
committer | Michael Lauer <mickey@vanille-media.de> | 2006-10-12 10:53:31 +0000 |
commit | 86123c1f8c95b10a1aee30b96b3ed86dfe7a6b88 (patch) | |
tree | 06148303c970af06e425b4e90d90b3f754e334e0 /classes | |
parent | 94df33eaad7e5b8ea972b019e63a915d564c5ed7 (diff) |
base.bbclass: make showing display revision work with the mtn 0.30 workspace format
Diffstat (limited to 'classes')
-rw-r--r-- | classes/base.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
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 = "<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 ) |