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

cal at macports.org cal at macports.org
Thu Nov 29 16:21:31 PST 2012


Revision: 100129
          https://trac.macports.org/changeset/100129
Author:   cal at macports.org
Date:     2012-11-29 16:21:30 -0800 (Thu, 29 Nov 2012)
Log Message:
-----------
rev-upgrade: abort when hitting a port that's not in the index

either the portindex is corrupt, or the port has been removed since the
user's last upgrade. Either way, this can trigger an endless loop.

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

Modified: trunk/base/src/macports1.0/macports.tcl
===================================================================
--- trunk/base/src/macports1.0/macports.tcl	2012-11-30 00:20:20 UTC (rev 100128)
+++ trunk/base/src/macports1.0/macports.tcl	2012-11-30 00:21:30 UTC (rev 100129)
@@ -4376,8 +4376,8 @@
                 }
                 if {[llength $result] < 2} {
                     ui_warn "No port $portname found in the index; can't rebuild"
-                    unset broken_files_by_port($port)
-                    continue
+                    ui_warn "Either your portindex is corrupt or $portname has been removed; consider uninstalling it."
+                    error "Port $portname not found in index"
                 }
             }
             if {![info exists broken_port_counts($portname)]} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121129/254dd257/attachment.html>


More information about the macports-changes mailing list