go: a couple minor cleanups from upstream

This commit is contained in:
Michael Marineau 2016-01-19 20:51:39 -08:00
parent 45257bcb80
commit e31ec800f0

View File

@ -55,6 +55,7 @@ go_arch()
local portage_arch=$(tc-arch $@) local portage_arch=$(tc-arch $@)
case "${portage_arch}" in case "${portage_arch}" in
x86) echo 386;; x86) echo 386;;
x64-*) echo amd64;;
*) echo "${portage_arch}";; *) echo "${portage_arch}";;
esac esac
} }
@ -109,10 +110,6 @@ pkg_pretend()
src_prepare() src_prepare()
{ {
if [[ ${PV} != 9999 ]]; then
sed -i -e 's/"-Werror",//g' src/cmd/dist/build.go ||
die 'sed failed'
fi
epatch_user epatch_user
} }