Fix a silly mistake with the version checker that would cause false upgrade notices.
This commit is contained in:
+18
-10
@@ -1709,20 +1709,28 @@ function sepgp:parseVersion(version,otherVersion)
|
||||
sepgp._otherversion.patch = tonumber(patch)
|
||||
end
|
||||
if (sepgp._otherversion.major ~= nil and sepgp._version.major ~= nil) then
|
||||
if (sepgp._otherversion.major > sepgp._version.major) then
|
||||
return true, "major"
|
||||
elseif (sepgp._otherversion.major == sepgp._version.major) then
|
||||
if (sepgp._otherversion.major < sepgp._version.major) then -- we are newer
|
||||
return
|
||||
elseif (sepgp._otherversion.major > sepgp._version.major) then -- they are newer
|
||||
return true, "major"
|
||||
else -- tied on major, go minor
|
||||
if (sepgp._otherversion.minor ~= nil and sepgp._version.minor ~= nil) then
|
||||
if (sepgp._otherversion.minor > sepgp._version.minor) then
|
||||
if (sepgp._otherversion.minor < sepgp._version.minor) then -- we are newer
|
||||
return
|
||||
elseif (sepgp._otherversion.minor > sepgp._version.minor) then -- they are newer
|
||||
return true, "minor"
|
||||
elseif (sepgp._otherversion.patch ~= nil and sepgp._version.patch ~= nil) then
|
||||
if (sepgp._otherversion.patch > sepgp._version.patch) then
|
||||
else -- tied on minor, go patch
|
||||
if (sepgp._otherversion.patch ~= nil and sepgp._version.patch ~= nil) then
|
||||
if (sepgp._otherversion.patch < sepgp._version.patch) then -- we are newer
|
||||
return
|
||||
elseif (sepgp._otherversion.patch > sepgp._version.patch) then -- they are newwer
|
||||
return true, "patch"
|
||||
end
|
||||
elseif (sepgp._otherversion.patch ~= nil and sepgp._version.patch == nil) then -- they are newer
|
||||
return true, "patch"
|
||||
end
|
||||
elseif (sepgp._otherversion.patch ~= nil and sepgp._version.patch == nil) then
|
||||
return true, "patch"
|
||||
end
|
||||
elseif (sepgp._otherversion.minor ~= nil and sepgp._version.minor == nil) then
|
||||
end
|
||||
elseif (sepgp._otherversion.minor ~= nil and sepgp._version.minor == nil) then -- they are newer
|
||||
return true, "minor"
|
||||
end
|
||||
end
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
## X-Website: https://github.com/Road-block/shootyepgp/releases/latest
|
||||
## X-Category: Guild
|
||||
## X-Credits: shooty
|
||||
## Version: 3.30
|
||||
## Version: 3.30.1
|
||||
## X-Alpha:
|
||||
## OptionalDeps: Ace2
|
||||
## SavedVariables: sepgp_saychannel, sepgp_groupbyclass, sepgp_raidonly, sepgp_dbver
|
||||
|
||||
Reference in New Issue
Block a user