⚙️ Keep full string around, helps debugging

This commit is contained in:
mudler
2022-04-28 01:00:58 +02:00
parent 5bc3e3f277
commit 2aa4c8a42e
2 changed files with 13 additions and 9 deletions

View File

@@ -134,10 +134,10 @@ func (db *InMemoryDatabase) GetAllPackages(packages chan *types.Package) error {
func (db *InMemoryDatabase) getRevdeps(p *types.Package, visited map[string]interface{}) (types.Packages, error) {
var versionsInWorld types.Packages
if _, ok := visited[p.GetFingerPrint()]; ok {
if _, ok := visited[p.FullString()]; ok {
return versionsInWorld, nil
}
visited[p.GetFingerPrint()] = true
visited[p.FullString()] = true
var res types.Packages
packs, err := db.FindPackages(p)