File go-1.5-install-dont-reinstall-stdlibs.patch of Package go.2145

Index: go/src/cmd/go/pkg.go
===================================================================
--- go.orig/src/cmd/go/pkg.go
+++ go/src/cmd/go/pkg.go
@@ -1374,6 +1374,13 @@ func isStale(p *Package) bool {
 		return false
 	}
 
+	// openSUSE bnc#776058
+	// 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 {
+		return false
+	}
+
 	// Time-based staleness.
 
 	built := fi.ModTime()
openSUSE Build Service is sponsored by