Skip to content

Commit

Permalink
(GH-523) Install "*.nupkg" - Be explicit about version
Browse files Browse the repository at this point in the history
Previously if there were two versions of a nupkg in the same
directory and you tried to install the older one, it would install
the newer one. Now the nupkg version is explicitly specified as
part of the install arguments.
  • Loading branch information
Paul Hunt authored and ferventcoder committed Mar 22, 2017
1 parent fe55f47 commit 5f59eb6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/chocolatey/infrastructure.app/services/NugetService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ public ConcurrentDictionary<string, PackageResult> install_run(ChocolateyConfigu
else
{
var packageFile = new OptimizedZipPackage(_fileSystem.get_full_path(packageName));
version = packageFile.Version;
packageNames.Add(packageFile.Id);
}
}
Expand Down

0 comments on commit 5f59eb6

Please sign in to comment.