fix: Reworked the version check (#4719) (#4781)

[skip ci]
pull/4786/head
Wesley King 2 years ago committed by GitHub
parent 5446406cf2
commit 55855c5add
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -40,6 +40,8 @@ namespace Ombi.Schedule.Processor
private UpdateModel TransformUpdate(Release release)
{
Version updateVersion = Version.Parse(release.Version.TrimStart('v'));
Version currentVersion = Version.Parse(AssemblyHelper.GetRuntimeVersion());
var newUpdate = new UpdateModel
{
UpdateVersionString = release.Version,
@ -47,7 +49,7 @@ namespace Ombi.Schedule.Processor
UpdateDate = DateTime.Now,
ChangeLogs = release.Description,
Downloads = new List<Downloads>(),
UpdateAvailable = release.Version != "v" + AssemblyHelper.GetRuntimeVersion()
UpdateAvailable = updateVersion > currentVersion
};
foreach (var dl in release.Downloads)

Loading…
Cancel
Save