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

jmr at macports.org jmr at macports.org
Sun May 30 22:11:36 PDT 2010


Revision: 68288
          http://trac.macports.org/changeset/68288
Author:   jmr at macports.org
Date:     2010-05-30 22:11:31 -0700 (Sun, 30 May 2010)
Log Message:
-----------
only print reason message when epochs differ in action_outdated if the comparison result would otherwise be unexpected

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

Modified: trunk/base/src/port/port.tcl
===================================================================
--- trunk/base/src/port/port.tcl	2010-05-31 04:47:52 UTC (rev 68287)
+++ trunk/base/src/port/port.tcl	2010-05-31 05:11:31 UTC (rev 68288)
@@ -2988,7 +2988,9 @@
             }
             set reason ""
             if {$epoch_comp_result != 0} {
-                set reason { (epoch $installed_epoch $relation $latest_epoch)}
+                if {($comp_result >= 0 && $epoch_comp_result < 0) || ($comp_result <= 0 && $epoch_comp_result > 0)} {
+                    set reason { (epoch $installed_epoch $relation $latest_epoch)}
+                }
                 set comp_result $epoch_comp_result
             } elseif {$comp_result == 0} {
                 set regref [registry::open_entry $portname $installed_version $installed_revision [lindex $i 3] $installed_epoch]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100530/91ae2359/attachment.html>


More information about the macports-changes mailing list