mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-03 03:37:28 +01:00
Remove game support dependency cycle error message
This commit is contained in:
parent
53a004c41c
commit
5b1417f432
@ -174,12 +174,12 @@ class GameSupport:
|
||||
|
||||
def _get_supported_games(self, package: GSPackage, visited: list[str]) -> Optional[set[str]]:
|
||||
if package.id_ in visited:
|
||||
first_idx = visited.index(package.id_)
|
||||
visited = visited[first_idx:]
|
||||
err = f"Dependency cycle detected: {' -> '.join(visited)} -> {package.id_}"
|
||||
for id_ in visited:
|
||||
package2 = self.get(id_)
|
||||
package2.add_error(err)
|
||||
# first_idx = visited.index(package.id_)
|
||||
# visited = visited[first_idx:]
|
||||
# err = f"Dependency cycle detected: {' -> '.join(visited)} -> {package.id_}"
|
||||
# for id_ in visited:
|
||||
# package2 = self.get(id_)
|
||||
# package2.add_error(err)
|
||||
return None
|
||||
|
||||
if package.type == PackageType.GAME:
|
||||
|
Loading…
Reference in New Issue
Block a user