strawgate / C3-Patch

Other
5 stars 2 forks source link

Firefox Mac update relevance fails when switching from major to minor versions #29

Open BrianCanFixIT opened 7 years ago

BrianCanFixIT commented 7 years ago

The current update logic for Firefox for Mac updates fails due to how BigFix handles versions and how firefox presents it's version, in the case where a major version is installed and an update to that major version is available.

In the following example, Firefox is installed an it reports its version as "51.0"

Q: ("51.0" as version) < ("51.0.1" as version)
A: False
Q: exists version whose (it < "51.0.1") of application "Firefox.app"
A: False

As of Bigfix 9.5.3.211 pad of now exist on mac, this can be utilized to work-around the version issues

Q: pad of ("51.0" as version) < ("51.0.1" as version)
A: True
Q: exists version whose (pad of it < "51.0.1") of application "Firefox.app"
A: True

The current relevance: exists version whose (it < "51.0.1") of application "Firefox.app" Would become: exists version whose (pad of it < "51.0.1") of application "Firefox.app"

strawgate commented 7 years ago

Thanks! I'll get this fixed shortly.