build: add support for downstream project in some prepare tasks.

This commit is contained in:
Alexandre Pujol 2025-09-07 22:59:00 +02:00
parent 627700a152
commit b45e1f36fe
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
2 changed files with 7 additions and 1 deletions

View file

@ -139,8 +139,11 @@ func Configure() {
builder.Register("stacked-dbus")
} else {
if !prebuild.DownStream {
prepare.Register("attach")
}
builder.Register("attach")
prepare.Register("attach")
}
default:

View file

@ -13,6 +13,9 @@ var (
// AppArmor version
Version = 4.0
// Tells the build we are a downstream project using apparmor.d as dependency
DownStream = false
// Either or not RBAC is enabled
RBAC = false