mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-04-06 18:36:50 +00:00
fix(mariadb): skip source tarballs with OS="Source" or whitespace CPU
The MariaDB API returns OS="Source" and CPU=" " for source packages. The previous check only tested for empty strings, missing these.
This commit is contained in:
@@ -1357,8 +1357,9 @@ func classifyMariaDBDist(d *rawcache.Dir) ([]storage.Asset, error) {
|
||||
lts := rel.MajorStatus == "Stable"
|
||||
|
||||
for _, f := range rel.Files {
|
||||
// Skip source packages (no OS or CPU).
|
||||
if f.OS == "" || f.CPU == "" {
|
||||
// Skip source packages. The API uses OS="Source" and
|
||||
// sometimes " " (not empty) for CPU on source tarballs.
|
||||
if strings.EqualFold(f.OS, "source") || strings.TrimSpace(f.OS) == "" || strings.TrimSpace(f.CPU) == "" {
|
||||
continue
|
||||
}
|
||||
// Skip debug builds.
|
||||
|
||||
Reference in New Issue
Block a user