summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2006-10-12 10:53:31 +0000
committerMichael Lauer <mickey@vanille-media.de>2006-10-12 10:53:31 +0000
commit86123c1f8c95b10a1aee30b96b3ed86dfe7a6b88 (patch)
tree06148303c970af06e425b4e90d90b3f754e334e0
parent94df33eaad7e5b8ea972b019e63a915d564c5ed7 (diff)
base.bbclass: make showing display revision work with the mtn 0.30 workspace format
-rw-r--r--classes/base.bbclass3
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 )