[51428] branches/images-and-archives/base/src/port1.0/portmain.tcl
blb at macports.org
blb at macports.org
Sun May 24 20:30:44 PDT 2009
Revision: 51428
http://trac.macports.org/changeset/51428
Author: blb at macports.org
Date: 2009-05-24 20:30:44 -0700 (Sun, 24 May 2009)
Log Message:
-----------
Access os.platform only when available
Modified Paths:
--------------
branches/images-and-archives/base/src/port1.0/portmain.tcl
Modified: branches/images-and-archives/base/src/port1.0/portmain.tcl
===================================================================
--- branches/images-and-archives/base/src/port1.0/portmain.tcl 2009-05-25 01:53:28 UTC (rev 51427)
+++ branches/images-and-archives/base/src/port1.0/portmain.tcl 2009-05-25 03:30:44 UTC (rev 51428)
@@ -94,7 +94,7 @@
default os.universal_supported no
set macosx_version {}
-if {$os_platform == "darwin"} {
+if {[info exists os.platform] && ${os.platform} == "darwin"} {
# This will probably break when Apple changes versioning
set macosx_version [expr 10.0 + ($os_major - 4) / 10.0]
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090524/06111786/attachment.html>
More information about the macports-changes
mailing list