[43481] trunk/base/src/port1.0/portutil.tcl

perry at macports.org perry at macports.org
Wed Dec 10 21:22:55 PST 2008


Revision: 43481
          http://trac.macports.org/changeset/43481
Author:   perry at macports.org
Date:     2008-12-10 21:22:55 -0800 (Wed, 10 Dec 2008)
Log Message:
-----------
port1.0/portutil.tcl - Removed redundant if's.  Thanks blb!

Modified Paths:
--------------
    trunk/base/src/port1.0/portutil.tcl

Modified: trunk/base/src/port1.0/portutil.tcl
===================================================================
--- trunk/base/src/port1.0/portutil.tcl	2008-12-11 05:22:23 UTC (rev 43480)
+++ trunk/base/src/port1.0/portutil.tcl	2008-12-11 05:22:55 UTC (rev 43481)
@@ -473,11 +473,7 @@
     
         # Set conflicts (if any).
         set vconflicts [ join [ lsort [ ditem_key $ditem conflicts ] ] ]
-        if { $vconflicts != "" } {
-            array set variant [ list conflicts $vconflicts ]
-        } else {
-            array set variant [ list conflicts "" ]
-        }
+        array set variant [ list conflicts $vconflicts ]
 
         lappend PortInfo(variants) $variant_provides
         set vdesc [join [ditem_key $ditem description]]
@@ -500,11 +496,7 @@
 
         # Set requires (if any).
         set vrequires [ join [ lsort [ ditem_key $ditem requires ] ] ]
-        if { $vrequires != "" } {
-            array set variant [ list requires $vrequires ]
-        } else {
-            array set variant [ list requires "" ]
-        }
+        array set variant [ list requires $vrequires ]
     }
 
     # Add variant to PortInfo(_variants)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081210/40c650fb/attachment-0001.html>


More information about the macports-changes mailing list