diff options
-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 ) |