Permalink
Browse files

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

  • Loading branch information...
1 parent 438da67 commit 3ee716c102f13127f283c7d230e73403c01e668d @offbyoneBB offbyoneBB committed Mar 29, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 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();

0 comments on commit 3ee716c

Please sign in to comment.