Fix game support crash due to incorrect key

This commit is contained in:
rubenwardy 2023-01-08 12:23:14 +00:00
parent 0a6e3237b1
commit be8de45714

@ -98,11 +98,11 @@ class GameSupportResolver:
return retval return retval
def resolve(self, package: Package, history: List[str]) -> set[int]: def resolve(self, package: Package, history: List[str]) -> set[int]:
key = package.id key: int = package.id
print(f"Resolving for {key}", file=sys.stderr) print(f"Resolving for {key}", file=sys.stderr)
history = history.copy() history = history.copy()
history.append(key) history.append(package.getId())
if package.type == PackageType.GAME: if package.type == PackageType.GAME:
return {package.id} return {package.id}