Changeset 1049

Show
Ignore:
Timestamp:
2008-08-20 15:35:00 (3 months ago)
Author:
MaierMan
Message:

use .compareVersion

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/components/migrationService.js

    r993 r1049  
    6060                try { 
    6161                        debug("current " + DTA.VERSION); 
    62                         var vc = Cc["@mozilla.org/xpcom/version-comparator;1"] 
    63                                 .getService(Ci.nsIVersionComparator); 
    64                  
    65                         var lastVersion = Preferences.getExt('version', '0'); 
    66                         if (0 == vc.compare(DTA.VERSION, lastVersion)) { 
     62 
     63                        let lastVersion = Preferences.getExt('version', '0'); 
     64                        if (0 == DTA.compareVersion(lastVersion)) { 
    6765                                return; 
    6866                        } 
    6967                        debug("MigrationManager: migration started"); 
    70                         if (vc.compare(lastVersion, "1.0a1") < 0) { 
     68                        if (DTA.compareVersion(lastVersion, "1.0a1") < 0) { 
    7169                                this._execute(['Prefs', 'DropDowns', 'Filters', 'Remove']); 
    7270                        } 
    73                         if (vc.compare(lastVersion, "1.0.1") < 0) { 
     71                        if (DTA.compareversion(lastVersion, "1.0.1") < 0) { 
    7472                                this._execute(['ResetMaxConnections']); 
    7573                        }