diff options
Diffstat (limited to 'rust/image.go')
-rw-r--r-- | rust/image.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rust/image.go b/rust/image.go index 5ff10ae22..ac8c1b32c 100644 --- a/rust/image.go +++ b/rust/image.go @@ -71,6 +71,15 @@ func (mod *Module) HasVendorVariant() bool { return Bool(mod.VendorProperties.Vendor_available) || Bool(mod.VendorProperties.Odm_available) } +// Always returns false because rust modules do not support product variant. +func (mod *Module) HasProductVariant() bool { + return Bool(mod.VendorProperties.Product_available) +} + +func (mod *Module) HasNonSystemVariants() bool { + return mod.HasVendorVariant() || mod.HasProductVariant() +} + func (c *Module) InProduct() bool { return false } |