mirror of
https://github.com/mudler/luet.git
synced 2025-09-02 07:45:02 +00:00
Integrate parsing of IUSE
This commit is contained in:
@@ -204,6 +204,13 @@ func (ep *SimpleEbuildParser) ScanEbuild(path string, tree pkg.Tree) ([]pkg.Pack
|
||||
}
|
||||
|
||||
// TODO: Handle this a bit better
|
||||
iuse, ok := vars["IUSE"]
|
||||
if ok {
|
||||
uses := strings.Split(strings.TrimSpace(iuse.String()), " ")
|
||||
for _, u := range uses {
|
||||
pack.AddUse(u)
|
||||
}
|
||||
}
|
||||
|
||||
rdepend, ok := vars["RDEPEND"]
|
||||
if ok {
|
||||
|
Reference in New Issue
Block a user