build: generalise the use of apparmor version during the build.

This commit is contained in:
Alexandre Pujol 2025-03-30 17:06:00 +02:00
parent d3e9a7ec70
commit baa3f8f639
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
5 changed files with 39 additions and 15 deletions

View file

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