diff --git a/pkg/package/package.go b/pkg/package/package.go index 2ff894ae..6127520b 100644 --- a/pkg/package/package.go +++ b/pkg/package/package.go @@ -21,6 +21,7 @@ import ( "fmt" "path/filepath" "sort" + "strings" // . "github.com/mudler/luet/pkg/logger" @@ -77,6 +78,8 @@ type Package interface { SetLicense(string) GetLicense() string + + IsSelector() bool } type Tree interface { @@ -179,6 +182,10 @@ func (p *DefaultPackage) SetPath(s string) { p.Path = s } +func (p *DefaultPackage) IsSelector() bool { + return strings.ContainsAny(p.GetVersion(), "<>=") +} + // AddUse adds a use to a package func (p *DefaultPackage) AddUse(use string) { for _, v := range p.UseFlags {