Changeset 1094

Show
Ignore:
Timestamp:
2008-09-15 03:54:35 (2 months ago)
Author:
MaierMan
Message:

#864: Wrong version compare

Files:

Legend:

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

    r1084 r1094  
    6262 
    6363                        let lastVersion = Preferences.getExt('version', '0'); 
    64                         if (0 == DTA.compareVersion(lastVersion)) { 
     64                        if (0 == DTA.compareVersion(DTA.BASE_VERSION, lastVersion)) { 
    6565                                return; 
    6666                        } 
     
    7575                                .createInstance(Components.interfaces.nsIDialogParamBlock); 
    7676        params.SetNumberStrings(1); 
    77         params.SetString(0, DTA.VERSION); 
     77        params.SetString(0, DTA.BASE_VERSION); 
    7878        let mediator = {}; 
    7979        Components.utils.import('resource://dta/mediator.jsm', mediator); 
  • trunk/modules/version.jsm

    r1090 r1094  
    77 
    88const VERSION = ITEM.version; 
     9const BASE_VERSION = VERSION.replace(/^([\d\w]+\.[\d\w]+).*?$/, '$1'); 
    910const NAME = ITEM.name; 
    1011 
     
    1718                [version, cmp] = [VERSION, version]; 
    1819        } 
    19         version = version.replace(/^([\d\w]+\.[\d\w]+).*?$/, '$1'); 
    2020        return comparator.compare(version, cmp); 
    2121}