update the updater

This commit is contained in:
Luke Pulverenti 2017-06-10 12:38:18 -04:00
parent 15ee918ac6
commit 7fcd14f4fb

View File

@ -58,7 +58,7 @@ namespace MediaBrowser.Common.Updates
}
else if (updateLevel == PackageVersionClass.Beta)
{
obj = obj.Where(i => !i.prerelease || i.name.EndsWith("-beta", StringComparison.OrdinalIgnoreCase)).ToArray();
obj = obj.Where(i => i.prerelease && i.name.EndsWith("-beta", StringComparison.OrdinalIgnoreCase)).ToArray();
}
else if (updateLevel == PackageVersionClass.Dev)
{
@ -81,7 +81,7 @@ namespace MediaBrowser.Common.Updates
{
if (updateLevel == PackageVersionClass.Beta)
{
return !i.prerelease || i.name.EndsWith("-beta", StringComparison.OrdinalIgnoreCase);
return i.prerelease && i.name.EndsWith("-beta", StringComparison.OrdinalIgnoreCase);
}
if (updateLevel == PackageVersionClass.Dev)
{