Revision
68286
Author
jmr@macports.org
Date
2010-05-30 21:22:50 -0700 (Sun, 30 May 2010)

Log Message

fix version comparison in action_outdated when epoch has changed

Modified Paths

Diff

Modified: trunk/base/src/port/port.tcl (68285 => 68286)


--- trunk/base/src/port/port.tcl	2010-05-31 04:11:51 UTC (rev 68285)
+++ trunk/base/src/port/port.tcl	2010-05-31 04:22:50 UTC (rev 68286)
@@ -2987,10 +2987,10 @@
                 set comp_result [rpm-vercomp $installed_revision $latest_revision]
             }
             set reason ""
-            if {$comp_result == 0 && $epoch_comp_result != 0} {
+            if {$epoch_comp_result != 0} {
                 set reason { (epoch $installed_epoch $relation $latest_epoch)}
                 set comp_result $epoch_comp_result
-            } elseif {$comp_result == 0 && $epoch_comp_result == 0} {
+            } elseif {$comp_result == 0} {
                 set regref [registry::open_entry $portname $installed_version $installed_revision [lindex $i 3] $installed_epoch]
                 set os_platform_installed [registry::property_retrieve $regref os_platform]
                 set os_major_installed [registry::property_retrieve $regref os_major]