[105533] trunk/base/src/port/port.tcl

cal at macports.org cal at macports.org
Tue Apr 23 16:41:14 PDT 2013


Revision: 105533
          https://trac.macports.org/changeset/105533
Author:   cal at macports.org
Date:     2013-04-23 16:41:14 -0700 (Tue, 23 Apr 2013)
Log Message:
-----------
port.tcl: print a hint to run port -v selfupdate if selfupdate fails

This gives some debugging advice to the user similar to the message we print
when a port fails to build.
See https://lists.macosforge.org/pipermail/macports-users/2013-April/032407.html

Modified Paths:
--------------
    trunk/base/src/port/port.tcl

Modified: trunk/base/src/port/port.tcl
===================================================================
--- trunk/base/src/port/port.tcl	2013-04-23 22:34:35 UTC (rev 105532)
+++ trunk/base/src/port/port.tcl	2013-04-23 23:41:14 UTC (rev 105533)
@@ -2603,6 +2603,14 @@
     if { [catch {macports::selfupdate [array get global_options] base_updated} result ] } {
         global errorInfo
         ui_debug "$errorInfo"
+        ui_error "$result"
+        if {![macports::ui_isset ports_verbose]} {
+            ui_msg "Please run `port -v selfupdate' for details."
+        } else {
+            # Let's only print the ticket URL if the user has followed the
+            # advice we printed earlier.
+            print_tickets_url
+        }
         fatal "port selfupdate failed: $result"
     }
     
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130423/22589c15/attachment.html>


More information about the macports-changes mailing list