[116514] trunk/base/src

Gustaf Neumann neumann at wu.ac.at
Thu Feb 6 03:49:48 PST 2014


of course, you are right, it should be changed to

-            if {$macosx_version == "10.5"} {
+            if {$macosx_version eq "10.5"} {


adding/removing quotes does not change the semantics.

% expr 10.10 == "10.1"
1
% expr 10.10 eq "10.1"
0

.... although it will take a while until we have a Mac OS X 10.40 or 
10.50 :)

all the best
-gn

Am 06.02.14 11:27, schrieb Ryan Schmidt:
>> -            if {$macosx_version == "10.5"} {
>> +            if {$macosx_version == 10.5} {
>
> The OS X version number should be treated as a version number. In a pinch, treating it as a string will do, but treating it as a number (which is what this change does) is not correct. Mac OS X 10.1 is not the same as OS X 10.10, but a numeric comparison would consider it to be.
>
>



More information about the macports-dev mailing list