build: add filter for apparmor version.

This commit is contained in:
Alexandre Pujol 2025-03-15 00:26:47 +01:00
parent 07dbb0c7d3
commit 96e79d9d88
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
2 changed files with 10 additions and 1 deletions

View file

@ -43,6 +43,10 @@ func filterRuleForUs(opt *Option) bool {
if slices.Contains(opt.ArgList, abiStr) {
return true
}
versionStr := fmt.Sprintf("apparmor%s", prebuild.Version)
if slices.Contains(opt.ArgList, versionStr) {
return true
}
return slices.Contains(opt.ArgList, prebuild.Distribution) || slices.Contains(opt.ArgList, prebuild.Family)
}