Fix a bug that caused frozen output to be incorrectly rendered

This commit is contained in:
Vineet Naik 2020-04-11 17:38:47 +05:30
parent 67bba61be9
commit e7da6b3b50
1 changed files with 1 additions and 1 deletions

View File

@ -301,7 +301,7 @@ class Tree(Mapping):
@classmethod
def from_pkgs(cls, pkgs):
pkgs = [DistPackage(p) for p in pkgs]
idx = {p.key: DistPackage(p) for p in pkgs}
idx = {p.key: p for p in pkgs}
tree = {p: [ReqPackage(r, idx.get(r.key))
for r in p.requires()]
for p in pkgs}