Changeset 27900 for trunk/base


Ignore:
Timestamp:
Aug 15, 2007, 8:44:04 PM (13 years ago)
Author:
eridius@…
Message:

Fix macports::upgrade to properly handle installed versions that begin with letters

Location:
trunk/base
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/ChangeLog

    r27898 r27900  
    66
    77Unreleased:
     8
     9    - Fix upgrade to properly handle installed versions beginning with letters (eridius in r27900).
    810
    911    - Chris Pickel's GSoC2007 work: registry2.0 & cregistry (mainly r27518 & r27520)
  • trunk/base/src/macports1.0/macports.tcl

    r27825 r27900  
    17521752        }
    17531753        set anyactive 0
    1754         set version_installed 0
    1755         set revision_installed 0
     1754        set version_installed {}
     1755        set revision_installed {}
    17561756        set epoch_installed 0
    17571757        if {$ilist == ""} {
     
    17721772                        set version [lindex $i 1]
    17731773                        set revision [lindex $i 2]
    1774                         if { [rpm-vercomp $version $version_installed] > 0
     1774                        if { $version_installed == {} ||
     1775                                        [rpm-vercomp $version $version_installed] > 0
    17751776                                        || ([rpm-vercomp $version $version_installed] == 0
    17761777                                                && [rpm-vercomp $revision $revision_installed] > 0)} {
Note: See TracChangeset for help on using the changeset viewer.