[75534] trunk/base/src/port1.0

jmr at macports.org jmr at macports.org
Fri Jan 28 17:56:51 PST 2011


Revision: 75534
          http://trac.macports.org/changeset/75534
Author:   jmr at macports.org
Date:     2011-01-28 17:56:49 -0800 (Fri, 28 Jan 2011)
Log Message:
-----------
stop tcl from throwing an error just because launchctl writes to stderr

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

Modified: trunk/base/src/port1.0/portload.tcl
===================================================================
--- trunk/base/src/port1.0/portload.tcl	2011-01-29 00:59:19 UTC (rev 75533)
+++ trunk/base/src/port1.0/portload.tcl	2011-01-29 01:56:49 UTC (rev 75534)
@@ -57,7 +57,7 @@
         } elseif {![file exists $path]} {
             return -code error [format [msgcat::mc "Launchd plist %s was not found"] $path]
         } else {
-            exec $launchctl_path load -w $path
+            exec $launchctl_path load -w $path 2>@stderr
         }
     }
     

Modified: trunk/base/src/port1.0/portunload.tcl
===================================================================
--- trunk/base/src/port1.0/portunload.tcl	2011-01-29 00:59:19 UTC (rev 75533)
+++ trunk/base/src/port1.0/portunload.tcl	2011-01-29 01:56:49 UTC (rev 75534)
@@ -57,7 +57,7 @@
         } elseif {![file exists $path]} {
             return -code error [format [msgcat::mc "Launchd plist %s was not found"] $path]
         } else {
-            exec $launchctl_path unload -w $path
+            exec $launchctl_path unload -w $path 2>@stderr
         }
     }
     
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110128/0e27eaaa/attachment.html>


More information about the macports-changes mailing list