[32629] branches/release_1_6/base/portmgr/dmg/postflight

jmpp at macports.org jmpp at macports.org
Wed Jan 9 21:52:37 PST 2008


Revision: 32629
          http://trac.macosforge.org/projects/macports/changeset/32629
Author:   jmpp at macports.org
Date:     2008-01-09 21:52:37 -0800 (Wed, 09 Jan 2008)

Log Message:
-----------
Move away from `if` shorthand syntaxt to be able to provide an else clause that informs us the selfupdate was successful.

Modified Paths:
--------------
    branches/release_1_6/base/portmgr/dmg/postflight

Modified: branches/release_1_6/base/portmgr/dmg/postflight
===================================================================
--- branches/release_1_6/base/portmgr/dmg/postflight	2008-01-10 05:50:37 UTC (rev 32628)
+++ branches/release_1_6/base/portmgr/dmg/postflight	2008-01-10 05:52:37 UTC (rev 32629)
@@ -90,10 +90,12 @@
 function update_macports {
     export PATH=$BINPATH:$PATH
     echo "Synchronizing the MacPorts installation with the project's rsync server..."
-    port -v selfupdate || {
+    if ! port -v selfupdate; then 
         echo "An attempt to synchronize your recent MacPorts installation with the project's rsync server failed!"
         echo "Please run 'port -d selfupdate' manually to find out the cause of the error."
-    }
+    else
+        echo "Successful!"
+    fi
 }
 
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080109/18a0e36c/attachment-0001.html


More information about the macports-changes mailing list