1
0
mirror of https://github.com/golang/go synced 2024-11-22 03:44:39 -07:00

goinstall: report all newly-installed public packages

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4875048
This commit is contained in:
Andrew Gerrand 2011-08-14 10:52:20 +10:00
parent 9bcec3bbce
commit 6e66b16abe

View File

@ -196,9 +196,17 @@ func install(pkg, parent string) {
}
// Download remote packages if not found or forced with -u flag.
remote, public := isRemote(pkg), false
if remote && (err == build.ErrNotFound || (err == nil && *update)) {
printf("%s: download\n", pkg)
public, err = download(pkg, tree.SrcDir())
if remote {
if err == build.ErrNotFound || (err == nil && *update) {
// 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 {
errorf("%s: %v\n", pkg, err)