Skip to content

Commit

Permalink
Merge branch 'pr863' into stable
Browse files Browse the repository at this point in the history
* pr863:
  (GH-861) Fix uninstall to use version parameter
  • Loading branch information
ferventcoder committed Aug 3, 2016
2 parents e73dace + e9ecf80 commit faed657
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chocolatey/infrastructure.app/services/NugetService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1084,8 +1084,8 @@ public ConcurrentDictionary<string, PackageResult> uninstall_run(ChocolateyConfi
}
else
{
IPackage installedPackage = packageManager.LocalRepository.FindPackage(packageName);
if (installedPackage != null) installedPackageVersions.Add(installedPackage);
SemanticVersion semanticVersion = new SemanticVersion(config.Version);
installedPackageVersions = packageManager.LocalRepository.FindPackagesById(packageName).Where((p) => p.Version.Equals(semanticVersion)).ToList();
}

if (installedPackageVersions.Count == 0)
Expand Down

0 comments on commit faed657

Please sign in to comment.