diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 6889c49e09..406abec7f0 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,4 +1,4 @@ -#### 5.114.1 - 2017-10-13 +#### 5.114.2 - 2017-10-13 * BUGFIX: isExtracted function was falsely returning true to comparison - https://github.com/fsprojects/Paket/pull/2842 #### 5.114.0 - 2017-10-11 diff --git a/src/Paket.Core/Dependencies/NuGetCache.fs b/src/Paket.Core/Dependencies/NuGetCache.fs index 1f6ed00365..55357a2ea8 100644 --- a/src/Paket.Core/Dependencies/NuGetCache.fs +++ b/src/Paket.Core/Dependencies/NuGetCache.fs @@ -253,7 +253,9 @@ let inline isExtracted (directory:DirectoryInfo) (packageName:PackageName) (vers if not fi.Exists then false else if not directory.Exists then false else directory.EnumerateFileSystemInfos() - |> Seq.exists (fun f -> f.FullName.ToLower() <> fi.FullName.ToLower() && f.FullName.ToLower() <> licenseFile.ToLower()) + |> Seq.exists (fun f -> + (not (String.equalsIgnoreCase f.FullName fi.FullName)) && + (not (String.equalsIgnoreCase f.FullName licenseFile))) let IsPackageVersionExtracted(config:ResolvedPackagesFolder, packageName:PackageName, version:SemVerInfo) = match config.Path with