Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Commit

Permalink
Filter ignores "no-binaries" tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
bengarrett committed Jun 14, 2022
1 parent ad63ff7 commit 22ed9b3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/demozoo/internal/filter/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func Filter(p []releases.ProductionV1, quiet bool) (int, []releases.ProductionV1
if !prodType(prod.Types) {
continue
}
if lost(prod.Tags) {
if invalid(prod.Tags) {
continue
}
// confirm ID is not already used in a defacto2 file record
Expand Down Expand Up @@ -237,11 +237,14 @@ func prodType(types []releases.Type) bool {
return false
}

func lost(tags []string) bool {
func invalid(tags []string) bool {
for _, tag := range tags {
if strings.ToLower(tag) == "lost" {
return true
}
if strings.ToLower(tag) == "no-binaries" {
return true
}
}
return false
}

0 comments on commit 22ed9b3

Please sign in to comment.