2e92b42e5b
OBS-URL: https://build.opensuse.org/request/show/348297 OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/go?expand=0&rev=240
19 lines
487 B
Diff
19 lines
487 B
Diff
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()
|