aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2007-01-06 08:04:12 +0000
committerMarcin Juszkiewicz <hrw@openembedded.org>2007-01-06 08:04:12 +0000
commitfe1a642540a5369b5f8025943ec4b4b6978c73bc (patch)
tree5c7ff6e66d1cc045dc49230e7b7f569d998b17ad /classes
parent02fe690b8cb6d91c84c1c2a0f73fc26df095ae69 (diff)
downloadopenembedded-fe1a642540a5369b5f8025943ec4b4b6978c73bc.tar.gz
base.bbclass: make showing display revision work with the mtn 0.30 workspace format (from .dev)
applied changes from a0629352152e47a18449beec57ef52289d116470 through 98967f30d170009882b65d09d686fc199579b15f
Diffstat (limited to 'classes')
-rw-r--r--classes/base.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass
index 495224ab02..20126a6a93 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -527,6 +527,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 )