[33941] trunk/base/src/macports1.0/macports.tcl

raimue at macports.org raimue at macports.org
Thu Feb 7 20:06:08 PST 2008


Revision: 33941
          http://trac.macosforge.org/projects/macports/changeset/33941
Author:   raimue at macports.org
Date:     2008-02-07 20:06:07 -0800 (Thu, 07 Feb 2008)

Log Message:
-----------
macports1.0/macports.tcl:
Add --nosync option to selfupdate, which allows updating MacPorts base without
syncing ports trees.

Modified Paths:
--------------
    trunk/base/src/macports1.0/macports.tcl

Modified: trunk/base/src/macports1.0/macports.tcl
===================================================================
--- trunk/base/src/macports1.0/macports.tcl	2008-02-08 03:58:04 UTC (rev 33940)
+++ trunk/base/src/macports1.0/macports.tcl	2008-02-08 04:06:07 UTC (rev 33941)
@@ -1643,8 +1643,10 @@
     array set options $optionslist
     
     # syncing ports tree.
-    if {[catch {mportsync} result]} {
-        return -code error "Couldn't sync the ports tree: $result"
+    if {![info exists options(ports_selfupdate_nosync)] || $options(ports_selfupdate_nosync) != "yes"} {
+        if {[catch {mportsync} result]} {
+            return -code error "Couldn't sync the ports tree: $result"
+        }
     }
     
     # create the path to the to be downloaded sources if it doesn't exist

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


More information about the macports-changes mailing list