Closed Bug 1523725 Opened 7 years ago Closed 7 years ago

Version comparing the strings from compatibility.ini fails in some cases

Categories

(Toolkit :: Startup and Profile System, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: mossop, Assigned: mossop)

References

Details

Attachments

(2 files)

compatibility.ini uses versions in the format: <appversion>_<appbuild>/<platformbuild>

The version comparator doesn't recognise _ and / and version separators so it gets confused.

For example: Services.vc.compare("67.0a1_1", "67.0_1") returns 1 instead of -1 like it should.

We should convert the separators to dots for comparison.

These patches were rolled into the patch for bug 1455707.

Status: NEW → RESOLVED
Closed: 7 years ago
Depends on: 1455707
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: