[51964] trunk/base/src/port1.0/portdestroot.tcl

jmr at macports.org jmr at macports.org
Sun Jun 7 08:36:16 PDT 2009


Revision: 51964
          http://trac.macports.org/changeset/51964
Author:   jmr at macports.org
Date:     2009-06-07 08:36:15 -0700 (Sun, 07 Jun 2009)
Log Message:
-----------
portdestroot: can't wrap the switch statement's cases in braces if we want variable substitution

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

Modified: trunk/base/src/port1.0/portdestroot.tcl
===================================================================
--- trunk/base/src/port1.0/portdestroot.tcl	2009-06-07 14:23:17 UTC (rev 51963)
+++ trunk/base/src/port1.0/portdestroot.tcl	2009-06-07 15:36:15 UTC (rev 51964)
@@ -312,17 +312,16 @@
                         lpush pathsToCheck $dfile
                     } else {
                         # not a prefix of an allowed path, so it's either the path itself or a violation
-                        switch $dfile {
-                            $applications_dir -
-                            $frameworks_dir -
-                            /Library/LaunchAgents -
-                            /Library/LaunchDaemons -
-                            /Library/StartupItems { ui_debug "port installs files in $dfile" }
+                        switch $dfile \
+                            $applications_dir - \
+                            $frameworks_dir - \
+                            /Library/LaunchAgents - \
+                            /Library/LaunchDaemons - \
+                            /Library/StartupItems { ui_debug "port installs files in $dfile" } \
                             default {
                                 ui_warn "violation by $dfile"
                                 set mtree_violation "yes"
                             }
-                        }
                     }
                 }
             }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090607/5af0b397/attachment.html>


More information about the macports-changes mailing list