Graham Anderson 2012-09-05 04:35:10 +00:00 committed by Git OBS Bridge
parent 39ed939f73
commit 32689d01b6

View File

@ -1,8 +1,8 @@
diff --git a/src/cmd/go/pkg.go b/src/cmd/go/pkg.go
index 54d65f9..0138028 100644
index 54d65f9..a6c93f4 100644
--- a/src/cmd/go/pkg.go
+++ b/src/cmd/go/pkg.go
@@ -476,6 +476,14 @@ func isStale(p *Package, topRoot map[string]bool) bool {
@@ -476,6 +476,13 @@ func isStale(p *Package, topRoot map[string]bool) bool {
return true
}
@ -10,7 +10,6 @@ index 54d65f9..0138028 100644
+ // Only root user can reinstall a std library from a dependancy, all other
+ // users should *never* have to do this.
+ if os.Getuid() != 0 && p.Standard {
+ fmt.Println("openSUSE")
+ return false
+ }
+