From 3cd53185c05cc4096a53e302d8b72a4705b1d490 Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Thu, 25 Apr 2019 10:29:16 +0100 Subject: [PATCH] (GH-661) Add setting of IsPrerelease property To correctly identify a package as being pre-release or not. --- Source/ChocolateyGui/Services/ChocolateyService.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/ChocolateyGui/Services/ChocolateyService.cs b/Source/ChocolateyGui/Services/ChocolateyService.cs index e4a02d91f..0a535804a 100644 --- a/Source/ChocolateyGui/Services/ChocolateyService.cs +++ b/Source/ChocolateyGui/Services/ChocolateyService.cs @@ -497,6 +497,8 @@ private static Package GetMappedPackage(GetChocolatey choco, PackageResult packa mappedPackage.IsInstalled = !string.IsNullOrWhiteSpace(package.InstallLocation) || forceInstalled; mappedPackage.IsSideBySide = packageInfo.IsSideBySide; + mappedPackage.IsPrerelease = !string.IsNullOrWhiteSpace(mappedPackage.Version.SpecialVersion); + // Add a sanity check here for pre-release packages // By default, pre-release packages are marked as IsLatestVersion = false, however, IsLatestVersion is // what is used to show/hide the Out of Date message in the UI. In these cases, if it is a pre-release