Commit 6e66b16a authored by Andrew Gerrand's avatar Andrew Gerrand

goinstall: report all newly-installed public packages

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4875048
parent 9bcec3bb
...@@ -196,9 +196,17 @@ func install(pkg, parent string) { ...@@ -196,9 +196,17 @@ func install(pkg, parent string) {
} }
// Download remote packages if not found or forced with -u flag. // Download remote packages if not found or forced with -u flag.
remote, public := isRemote(pkg), false remote, public := isRemote(pkg), false
if remote && (err == build.ErrNotFound || (err == nil && *update)) { if remote {
printf("%s: download\n", pkg) if err == build.ErrNotFound || (err == nil && *update) {
public, err = download(pkg, tree.SrcDir()) // Download remote package.
printf("%s: download\n", pkg)
public, err = download(pkg, tree.SrcDir())
} else {
// Test if this is a public repository
// (for reporting to dashboard).
m, _ := findPublicRepo(pkg)
public = m != nil
}
} }
if err != nil { if err != nil {
errorf("%s: %v\n", pkg, err) errorf("%s: %v\n", pkg, err)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment