[88156] branches/gsoc11-rev-upgrade/base/src/macports1.0/macports.tcl

cal at macports.org cal at macports.org
Tue Dec 20 16:19:37 PST 2011


Revision: 88156
          http://trac.macports.org/changeset/88156
Author:   cal at macports.org
Date:     2011-12-20 16:19:37 -0800 (Tue, 20 Dec 2011)
Log Message:
-----------
rev-upgrade: Handle dry-mode gracefully

Modified Paths:
--------------
    branches/gsoc11-rev-upgrade/base/src/macports1.0/macports.tcl

Modified: branches/gsoc11-rev-upgrade/base/src/macports1.0/macports.tcl
===================================================================
--- branches/gsoc11-rev-upgrade/base/src/macports1.0/macports.tcl	2011-12-21 00:17:38 UTC (rev 88155)
+++ branches/gsoc11-rev-upgrade/base/src/macports1.0/macports.tcl	2011-12-21 00:19:37 UTC (rev 88156)
@@ -4144,10 +4144,14 @@
             }
         }
 
-        return 1;
+        if {[info exists options(ports_dryrun)] && $options(ports_dryrun) == "yes"} {
+            ui_warn "If this was no dry run, rev-upgrade would now run the checks again to find unresolved and newly created problems"
+            return 0
+        }
+        return 1
     }
 
-    return 0;
+    return 0
 }
 
 # Return whether a path is in the macports prefix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111220/e87322e0/attachment.html>


More information about the macports-changes mailing list