Skip to content
Permalink
Browse files

fix: Use right architecture for ARM packages

Previously when creating deb package for ARMv6 and ARMv7 the
architecture information were invalid in the generated package.
For example ARMv6 package got armhf architecture which is not right.
According to https://wiki.debian.org/ArmHardFloatPort,
armel is armv4t, armv5, armv6 and armhf is armv7 so updated
to use correct architecture.
  • Loading branch information...
ernoaapa authored and caarlos0 committed Apr 13, 2018
1 parent 5af1abf commit 42fe5761f74198782928f21f678a3f7bcf319670
Showing with 4 additions and 1 deletion.
  1. +2 −0 internal/linux/arch.go
  2. +2 −1 internal/linux/arch_test.go
@@ -13,6 +13,8 @@ func Arch(key string) string {
case strings.Contains(key, "arm64"):
return "arm64"
case strings.Contains(key, "arm6"):
return "armel"
case strings.Contains(key, "arm7"):
return "armhf"
}
return key
@@ -12,7 +12,8 @@ func TestArch(t *testing.T) {
"amd64": "amd64",
"386": "i386",
"arm64": "arm64",
"arm6": "armhf",
"arm6": "armel",
"arm7": "armhf",
"what": "what",
} {
t.Run(fmt.Sprintf("%s to %s", from, to), func(t *testing.T) {

0 comments on commit 42fe576

Please sign in to comment.
You can’t perform that action at this time.