commit:     1c763dc038d371b30099f8bf2067756a5ce8e537
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Wed Oct  2 18:20:09 2019 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Wed Oct  2 18:20:09 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c763dc0

go-module.eclass: only show warning for new packages

Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 eclass/go-module.eclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/eclass/go-module.eclass b/eclass/go-module.eclass
index e6152966911..9c11959fdf8 100644
--- a/eclass/go-module.eclass
+++ b/eclass/go-module.eclass
@@ -165,6 +165,7 @@ go-module_live_vendor() {
 # Display a warning about security updates for Go programs.
 go-module_pkg_postinst() {
        debug-print-function ${FUNCNAME} "$@"
+       [[ -n ${REPLACING_VERSIONS} ]] && return 0
        ewarn "${PN} is written in the Go programming language."
        ewarn "Since this language is statically linked, security"
        ewarn "updates will be handled in individual packages and will be"

Reply via email to