Use the correct GOARM value in the armel package (#4608)

This commit is contained in:
Daniel Nelson 2018-08-29 12:28:00 -07:00 committed by GitHub
parent 59a64651f1
commit 8b2d64585d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -448,13 +448,14 @@ def build(version=None,
build_command += "CGO_ENABLED=0 " build_command += "CGO_ENABLED=0 "
# Handle variations in architecture output # Handle variations in architecture output
goarch = arch
if arch == "i386" or arch == "i686": if arch == "i386" or arch == "i686":
arch = "386" goarch = "386"
elif "arm64" in arch: elif "arm64" in arch:
arch = "arm64" goarch = "arm64"
elif "arm" in arch: elif "arm" in arch:
arch = "arm" goarch = "arm"
build_command += "GOOS={} GOARCH={} ".format(platform, arch) build_command += "GOOS={} GOARCH={} ".format(platform, goarch)
if "arm" in arch: if "arm" in arch:
if arch == "armel": if arch == "armel":