[oe-commits] org.oe.dev classes/icecc.bbclass: Use split so we get the real version instead of a single charachter
freyther commit
openembedded-commits at lists.openembedded.org
Tue Sep 12 09:04:29 UTC 2006
classes/icecc.bbclass: Use split so we get the real version instead of a single charachter
[2] will get us the 2nd charachter of the first line. This
is not what we wanted. We want the version number which is the
'2nd' column of the first line.
Author: freyther at openembedded.org
Branch: org.openembedded.dev
Revision: 9fa7d7e59941b8d15fcc1dc722bd3d781d3a4407
ViewMTN: http://monotone.openembedded.org/revision.psp?id=9fa7d7e59941b8d15fcc1dc722bd3d781d3a4407
Files:
1
classes/icecc.bbclass
Diffs:
#
# mt diff -r4377a1163151d096d9f0d73c5d35a5bdd66f76d8 -r9fa7d7e59941b8d15fcc1dc722bd3d781d3a4407
#
#
#
# patch "classes/icecc.bbclass"
# from [f6a94a5b3d9d936417e19da68055084fc23a2681]
# to [992ed9f6ddbcc5cc42dc6f8c8cde0cf217c554a8]
#
============================================================
--- classes/icecc.bbclass f6a94a5b3d9d936417e19da68055084fc23a2681
+++ classes/icecc.bbclass 992ed9f6ddbcc5cc42dc6f8c8cde0cf217c554a8
@@ -10,7 +10,7 @@ def icc_determine_gcc_version(gcc):
'i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5363)'
"""
- return os.popen("%s --version" % gcc ).readline()[2]
+ return os.popen("%s --version" % gcc ).readline().split()[2]
def create_env(bb,d):
"""
More information about the Openembedded-commits
mailing list