mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-24 07:51:03 +02:00
go: a couple minor cleanups from upstream
This commit is contained in:
parent
45257bcb80
commit
e31ec800f0
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user