Skip to content

Commit

Permalink
(GH-661) Add setting of IsPrerelease property
Browse files Browse the repository at this point in the history
To correctly identify a package as being pre-release or not.
  • Loading branch information
gep13 committed Apr 25, 2019
1 parent da53372 commit 3cd5318
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/ChocolateyGui/Services/ChocolateyService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3cd5318

Please sign in to comment.