Skip to content

Commit

Permalink
block more go mirrors
Browse files Browse the repository at this point in the history
  • Loading branch information
adg committed Jun 14, 2012
1 parent 5434a03 commit 623027a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions dash/spider.go
Expand Up @@ -29,7 +29,7 @@ import (
)

const (
spiderVersion = 1 // increment this when we change the spidering algorithm
spiderVersion = 2 // increment this when we change the spidering algorithm
spiderQueue = "spider"
)

Expand Down Expand Up @@ -219,6 +219,11 @@ func gopkgdocPaths(c appengine.Context) ([]string, error) {
}

func pathOK(p string) bool {
return !(doc.StandardPackages[p] ||
strings.HasPrefix(p, "code.google.com/p/go/"))
if doc.StandardPackages[p] ||
strings.HasPrefix(p, "code.google.com/p/go/") ||
strings.Contains(p, "/src/pkg/go/") || // Block Go mirrors.
strings.Contains(p, "/src/cmd/go/") {
return false
}
return true
}

0 comments on commit 623027a

Please sign in to comment.