[112183] trunk/base/src/macports1.0/macports.tcl
Rainer Müller
raimue at macports.org
Mon Oct 14 12:34:40 PDT 2013
On 2013-10-14 21:22, jeremyhu at macports.org wrote:
> Modified: trunk/base/src/macports1.0/macports.tcl
> ===================================================================
> --- trunk/base/src/macports1.0/macports.tcl 2013-10-14 19:00:23 UTC (rev 112182)
> +++ trunk/base/src/macports1.0/macports.tcl 2013-10-14 19:22:30 UTC (rev 112183)
> @@ -597,8 +597,7 @@
> set os_endian [string range $tcl_platform(byteOrder) 0 end-6]
> set macosx_version {}
> if {$os_platform eq {darwin}} {
> - # This will probably break when Apple changes versioning
> - set macosx_version 10.[expr {$os_major - 4}]
> + set macosx_version [exec sw_vers -productVersion]
Afther this change, macosx_version contains the string "10.8.5" instead
of "10.8" as it did before. This breaks some code in base that compares
this variable as a string to "10.5" or "10.4".
Rainer
More information about the macports-dev
mailing list