mirror of
https://github.com/mudler/luet.git
synced 2025-08-11 20:21:44 +00:00
Fixups to ExpandedRevdeps
This commit is contained in:
parent
8305d01e76
commit
a457c53824
@ -424,6 +424,7 @@ func (p *DefaultPackage) ExpandedRevdeps(definitiondb PackageDatabase, visited m
|
|||||||
if _, ok := visited[p.HumanReadableString()]; ok {
|
if _, ok := visited[p.HumanReadableString()]; ok {
|
||||||
return versionsInWorld
|
return versionsInWorld
|
||||||
}
|
}
|
||||||
|
visited[p.HumanReadableString()] = true
|
||||||
|
|
||||||
for _, w := range definitiondb.World() {
|
for _, w := range definitiondb.World() {
|
||||||
if w.Matches(p) {
|
if w.Matches(p) {
|
||||||
@ -436,7 +437,7 @@ func (p *DefaultPackage) ExpandedRevdeps(definitiondb PackageDatabase, visited m
|
|||||||
match = true
|
match = true
|
||||||
}
|
}
|
||||||
if !match {
|
if !match {
|
||||||
}
|
|
||||||
packages, _ := re.Expand(definitiondb)
|
packages, _ := re.Expand(definitiondb)
|
||||||
for _, pa := range packages {
|
for _, pa := range packages {
|
||||||
if pa.Matches(p) {
|
if pa.Matches(p) {
|
||||||
@ -445,12 +446,20 @@ func (p *DefaultPackage) ExpandedRevdeps(definitiondb PackageDatabase, visited m
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if ok, _ := w.RequiresContains(definitiondb, p); ok {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
if match {
|
if match {
|
||||||
versionsInWorld = append(versionsInWorld, w)
|
versionsInWorld = append(versionsInWorld, w)
|
||||||
versionsInWorld = append(versionsInWorld, w.ExpandedRevdeps(definitiondb, visited)...)
|
|
||||||
visited[w.HumanReadableString()] = true
|
versionsInWorld = append(versionsInWorld, w.ExpandedRevdeps(definitiondb, visited).Unique()...)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
//visited[p.HumanReadableString()] = true
|
||||||
return versionsInWorld.Unique()
|
return versionsInWorld.Unique()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user