[34900] branches/variant-descs-14482/base/src/port/port.tcl

raimue at macports.org raimue at macports.org
Mon Mar 10 08:54:28 PDT 2008


Revision: 34900
          http://trac.macosforge.org/projects/macports/changeset/34900
Author:   raimue at macports.org
Date:     2008-03-10 08:54:25 -0700 (Mon, 10 Mar 2008)

Log Message:
-----------
port/port.tcl:
Rename variable

Modified Paths:
--------------
    branches/variant-descs-14482/base/src/port/port.tcl

Modified: branches/variant-descs-14482/base/src/port/port.tcl
===================================================================
--- branches/variant-descs-14482/base/src/port/port.tcl	2008-03-10 15:39:48 UTC (rev 34899)
+++ branches/variant-descs-14482/base/src/port/port.tcl	2008-03-10 15:54:25 UTC (rev 34900)
@@ -456,7 +456,7 @@
 # @param porturl url to a port
 # @param variant name
 # @return description from descriptions file or an empty string
-proc get_variant_desc {porturl desc} {
+proc get_variant_desc {porturl variant} {
     global variant_descs_global
 
     set sourcepath [macports::getsourceconfigdir $porturl]
@@ -483,8 +483,8 @@
         }
     }
 
-    if {[info exists variant_descs_global(${sourcepath}_${desc})]} {
-        return $variant_descs_global(${sourcepath}_${desc})
+    if {[info exists variant_descs_global(${sourcepath}_${variant})]} {
+        return $variant_descs_global(${sourcepath}_${variant})
     } else {
         return ""
     }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080310/bef1f3bf/attachment.html 


More information about the macports-changes mailing list