Commit 44ab1e26 authored by Emmanuele Bassi's avatar Emmanuele Bassi

gir: Fix dependencies cache check

The dependencies are matched by namespace name, not by name and version.

Parsing time for Gtk-4.0 goes back from 12.7s to 3.4s.
parent 1ab0d30a
......@@ -135,7 +135,7 @@ class GirParser:
return res
def _parse_dependency(self, include: ast.Include) -> None:
if self._dependencies.get(str(include), None) is not None:
if self._dependencies.get(, None) is not None:
log.debug(f"Dependency {include} already parsed")
found = False
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment