[wpkg-users] [Bug 161] New: bugs in versionCompare()

bugzilla-daemon at bugzilla.wpkg.org bugzilla-daemon at bugzilla.wpkg.org
Wed May 27 20:45:20 CEST 2009


http://bugzilla.wpkg.org/show_bug.cgi?id=161

           Summary: bugs in versionCompare()
           Product: WPKG
           Version: 1.1.x-M
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: wpkg.js
        AssignedTo: mangoo at wpkg.org
        ReportedBy: parasytic at gmail.com
         QAContact: wpkg-users at lists.wpkg.org


Created an attachment (id=147)
 --> (http://bugzilla.wpkg.org/attachment.cgi?id=147)
Allow version comparisons with differing dot notations

* Elements starting with 0 will be evaluated to 0 by parseInt() --
parseInt("098") == Number(0)
* Comparing two version numbers with differing number of elements will cause
problems:

versionCompare("3.0", "3.0.1") == 0

The patch solves the latter problem.

-- 
Configure bugmail: http://bugzilla.wpkg.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.



More information about the wpkg-users mailing list