Permalink
Browse files

Modify the AutomaticPackageCurator query so that it will be case inse…

…nsitive.
  • Loading branch information...
TimLovellSmith committed Jan 17, 2013
1 parent c575705 commit b04e20a2286a0234bf0746b5fc282c60456f56d7
Showing with 5 additions and 2 deletions.
  1. +5 −2 Website/PackageCurators/AutomaticPackageCurator.cs
@@ -1,4 +1,4 @@
-using System.Diagnostics.Contracts;
+using System;
using System.Linq;
using System.Web.Mvc;
using NuGet;
@@ -23,7 +23,10 @@ protected bool DependenciesAreCurated(Package galleryPackage, CuratedFeed curate
return true;
}
- return galleryPackage.Dependencies.All(d => curatedFeed.Packages.Where(p => p.Included).Select(p => p.PackageRegistration.Id).Contains(d.Id));
+ return galleryPackage.Dependencies.All(
+ d => curatedFeed.Packages
+ .Where(p => p.Included)
+ .Any(p => p.PackageRegistration.Id.Equals(d.Id, StringComparison.InvariantCultureIgnoreCase)));
}
}
}

0 comments on commit b04e20a

Please sign in to comment.