Skip to content
This repository has been archived by the owner on Mar 6, 2022. It is now read-only.

Commit

Permalink
Fix bug in LibreOffice regarding 3/4 minor version strings
Browse files Browse the repository at this point in the history
  • Loading branch information
obsti8383 committed Nov 29, 2019
1 parent 7c612cd commit 56099a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,12 @@ func verifyInstalledSoftwareVersions(installedSoftware map[string]installedSoftw
version := installedComponent.DisplayVersion
versionSplit := strings.Split(version, ".")
minorVersion := versionSplit[0] + "." + versionSplit[1]
subMinorVersion := versionSplit[0] + "." + versionSplit[1] + "." + versionSplit[2]
currentRelease, inStatii := softwareReleaseStatii["LibreOffice "+minorVersion]
if inStatii {
mappedStatValue = currentRelease
found = true
if compareVersionStrings(currentRelease.Version, version) == 0 {
if compareVersionStrings(currentRelease.Version, subMinorVersion) == 0 {
upToDate = true
}
} else {
Expand Down

0 comments on commit 56099a0

Please sign in to comment.