util: arch: The Any value should be the same everywhere
In 80e8c9cadc when this was ported, the
"Any" value diverged accidentally. This would cause some packages to not
be found, since they didn't match any arch.
Thanks to karpfen to digging into the issue.
This commit is contained in:
@@ -31,18 +31,20 @@
|
|||||||
// these all in one place so that adding this data happens all in the same file.
|
// these all in one place so that adding this data happens all in the same file.
|
||||||
package arch
|
package arch
|
||||||
|
|
||||||
var (
|
const (
|
||||||
// Any is a special value meaning noarch or any arch.
|
// Any is a special value meaning noarch or any arch.
|
||||||
Any = "*"
|
Any = "*"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
// MapPackageKitArchToGoArch contains the mapping from PackageKit arch
|
// MapPackageKitArchToGoArch contains the mapping from PackageKit arch
|
||||||
// to GOARCH.
|
// to GOARCH.
|
||||||
MapPackageKitArchToGoArch = map[string]string{
|
MapPackageKitArchToGoArch = map[string]string{
|
||||||
// TODO: add more values
|
// TODO: add more values
|
||||||
// noarch
|
// noarch
|
||||||
"noarch": "ANY", // as seen in Fedora
|
"noarch": Any, // as seen in Fedora
|
||||||
"any": "ANY", // as seen in ArchLinux
|
"any": Any, // as seen in ArchLinux
|
||||||
"all": "ANY", // as seen in Debian
|
"all": Any, // as seen in Debian
|
||||||
// fedora
|
// fedora
|
||||||
"x86_64": "amd64",
|
"x86_64": "amd64",
|
||||||
"aarch64": "arm64",
|
"aarch64": "arm64",
|
||||||
|
|||||||
Reference in New Issue
Block a user