Skip to content

Commit

Permalink
faster string compare
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Oct 13, 2017
1 parent 2f4763f commit 8cb3582
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 3 additions & 1 deletion src/Paket.Core/Dependencies/NuGetCache.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8cb3582

Please sign in to comment.