go-module.eclass: only show warning for new packages
authorWilliam Hubbs <williamh@gentoo.org>
Wed, 2 Oct 2019 18:20:09 +0000 (13:20 -0500)
committerWilliam Hubbs <williamh@gentoo.org>
Wed, 2 Oct 2019 18:20:09 +0000 (13:20 -0500)
Signed-off-by: William Hubbs <williamh@gentoo.org>
eclass/go-module.eclass

index e6152966911fc40d53e2a9f43ac337dfee8ae860..9c11959fdf84e66f112cc0e16497b100a0664687 100644 (file)
@@ -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"