[MacPorts] #56549: selfupdate loses error message returned by mportsync

MacPorts noreply at macports.org
Mon May 28 22:48:19 UTC 2018

#56549: selfupdate loses error message returned by mportsync
 Reporter:  jmroot  |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  base    |    Version:
 Keywords:          |       Port:
 % sudo port sync
 --->  Updating the ports tree
 port sync failed: Synchronization of 1 source failed
 The last line there is sometimes the only error message generated outside
 of verbose mode, e.g. when a git repo fails to sync. selfupdate::main does
         try {
             mportsync $optionslist
         }  catch {{*} eCode eMessage} {
             return -code error "Couldn't sync the ports tree: $eMessage"
 which should return an error message that includes mportsync's. But
 apparently something further up the call chain fails to print it:
 % sudo port selfupdate
 --->  Updating MacPorts base sources using rsync
 MacPorts base version 2.5.99 installed,
 MacPorts base version 2.5.0 downloaded.
 --->  Updating the ports tree
 Needless to say, this is pretty confusing.

Ticket URL: <https://trac.macports.org/ticket/56549>
MacPorts <https://www.macports.org/>
Ports system for macOS

More information about the macports-tickets mailing list