Skip to content

Commit

Permalink
Package upload performance #2712
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenba committed Sep 30, 2015
1 parent ba097d6 commit 1fae551
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/NuGetGallery/PackageCurators/TagBasedPackageCurator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ protected TagBasedPackageCurator(ICuratedFeedService curatedFeedService)
public override void Curate(Package galleryPackage, INupkg nugetPackage, bool commitChanges)
{
// Make sure the target feed exists
CuratedFeed feed = CuratedFeedService.GetFeedByName(CuratedFeedName, includePackages: true);
CuratedFeed feed = CuratedFeedService.GetFeedByName(CuratedFeedName, includePackages: false);
if (feed != null && galleryPackage.Tags != null)
{
// Break the tags up so we can be sure we don't catch any partial matches (i.e. "foobar" when we're looking for "foo")
Expand Down
10 changes: 5 additions & 5 deletions src/NuGetGallery/PackageCurators/WebMatrixPackageCurator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public override void Curate(
INupkg nugetPackage,
bool commitChanges)
{
var curatedFeed = CuratedFeedService.GetFeedByName("webmatrix", includePackages: true);
var curatedFeed = CuratedFeedService.GetFeedByName("webmatrix", includePackages: false);
if (curatedFeed == null)
{
return;
Expand Down Expand Up @@ -54,16 +54,16 @@ internal static bool ShouldCuratePackage(
// Must support net40
SupportsNet40(galleryPackage) &&

// Dependencies on the gallery must be curated
DependenciesAreCurated(galleryPackage, curatedFeed) &&

(
// Must have AspNetWebPages tag
ContainsAspNetWebPagesTag(galleryPackage) ||

// OR: Must not contain powershell or T4
DoesNotContainUnsupportedFiles(nugetPackage)
);
) &&

// Dependencies on the gallery must be curated
DependenciesAreCurated(galleryPackage, curatedFeed);
}

private static bool ContainsAspNetWebPagesTag(Package galleryPackage)
Expand Down

0 comments on commit 1fae551

Please sign in to comment.