[oe-commits] org.oe.dev base.bbclass: make showing display revision work with the mtn 0.30 workspace format

mickeyl commit openembedded-commits at lists.openembedded.org
Fri Oct 13 09:48:44 UTC 2006


base.bbclass: make showing display revision work with the mtn 0.30 workspace format

Author: mickeyl at openembedded.org
Branch: org.openembedded.dev
Revision: 98967f30d170009882b65d09d686fc199579b15f
ViewMTN: http://monotone.openembedded.org/revision.psp?id=98967f30d170009882b65d09d686fc199579b15f
Files:
1
classes/base.bbclass
Diffs:

#
# mt diff -ra0629352152e47a18449beec57ef52289d116470 -r98967f30d170009882b65d09d686fc199579b15f
#
# 
# 
# patch "classes/base.bbclass"
#  from [d664dd9ce4a80554d59eff0b9cc64ca514542589]
#    to [99ff9a18bef28d5090f3a45bc2b77eff87118b52]
# 
============================================================
--- classes/base.bbclass	d664dd9ce4a80554d59eff0b9cc64ca514542589
+++ classes/base.bbclass	99ff9a18bef28d5090f3a45bc2b77eff87118b52
@@ -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 )






More information about the Openembedded-commits mailing list