[126903] contrib/restore_ports/restore_ports.tcl

jmr at macports.org jmr at macports.org
Thu Oct 16 18:38:43 PDT 2014


Revision: 126903
          https://trac.macports.org/changeset/126903
Author:   jmr at macports.org
Date:     2014-10-16 18:38:43 -0700 (Thu, 16 Oct 2014)
Log Message:
-----------
restore_ports: rpm-vercomp -> vercmp

Modified Paths:
--------------
    contrib/restore_ports/restore_ports.tcl

Modified: contrib/restore_ports/restore_ports.tcl
===================================================================
--- contrib/restore_ports/restore_ports.tcl	2014-10-17 01:33:51 UTC (rev 126902)
+++ contrib/restore_ports/restore_ports.tcl	2014-10-17 01:38:43 UTC (rev 126903)
@@ -150,7 +150,7 @@
         set variations [lindex $op 1]
         set active [lindex $op 2]
 
-        if {!$active || [rpm-vercomp [macports::version] 1.9.1] < 0} {
+        if {!$active || [vercmp [macports::version] 1.9.1] < 0} {
             set install_target install
         } else {
             set install_target activate
@@ -186,7 +186,7 @@
         }
         
         # XXX some ports may be reactivated to fulfil dependencies - check again at the end?
-        if {[rpm-vercomp [macports::version] 1.9.1] < 0 && !$active} {
+        if {[vercmp [macports::version] 1.9.1] < 0 && !$active} {
             if {[catch {portimage::deactivate $name "" [list ports_nodepcheck 1]} result]} {
                 global errorInfo
                 ui_debug "$errorInfo"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141016/528f6123/attachment.html>


More information about the macports-changes mailing list