Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

changed the CompareTo comparison from ">= 0" to "< 0"

  • Loading branch information...
commit 3ee716c102f13127f283c7d230e73403c01e668d 1 parent 438da67
@offbyoneBB offbyoneBB authored
View
4 mediaportal/MPE/MpeCore/Classes/ActionType/ExtensionInstaller.cs
@@ -85,10 +85,10 @@ public SectionResponseEnum Execute(PackageClass packageClass, ActionItem actionI
return SectionResponseEnum.Ok;
}
- // download new version
+ // download new version when none embedded and (none installed none or lower version than required installed)
if (embeddedPackage == null && !string.IsNullOrEmpty(actionItem.Params[Const_Guid].Value) &&
(installedPak == null ||
- (!string.IsNullOrEmpty(actionItem.Params[Const_Version].Value) && installedPak.GeneralInfo.Version.CompareTo(new Version(actionItem.Params[Const_Version].Value)) >= 0)))
+ (!string.IsNullOrEmpty(actionItem.Params[Const_Version].Value) && installedPak.GeneralInfo.Version.CompareTo(VersionInfo.Parse(actionItem.Params[Const_Version].Value)) < 0)))
{
// we don't want incompatible versions
MpeInstaller.KnownExtensions.HideByDependencies();
Please sign in to comment.
Something went wrong with that request. Please try again.