coreos-go-lang: always update default go version

This will override anything someone selected manually with `eselect go`
but in the context of the SDK that shouldn't really be an issue.
This commit is contained in:
Michael Marineau 2016-09-07 18:37:30 -07:00
parent 657255cb9c
commit dabb056d17

View File

@ -106,18 +106,12 @@ coreos-go-lang_src_install() {
dodoc AUTHORS CONTRIBUTORS PATENTS README.md dodoc AUTHORS CONTRIBUTORS PATENTS README.md
} }
eselect_go_update() {
if [[ -z "$(eselect go show)" || ! -f "${EROOT}usr/bin/$(eselect go show)" ]]; then
eselect go update
fi
}
coreos-go-lang_pkg_postinst() { coreos-go-lang_pkg_postinst() {
eselect_go_update eselect go update
} }
coreos-go-lang_pkg_postrm() { coreos-go-lang_pkg_postrm() {
eselect_go_update eselect go update
} }
EXPORT_FUNCTIONS pkg_pretend src_compile src_test src_install pkg_postinst pkg_postrm EXPORT_FUNCTIONS pkg_pretend src_compile src_test src_install pkg_postinst pkg_postrm