[gobject-introspection] Fix --include-uninstalled
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] Fix --include-uninstalled
- Date: Tue, 28 Sep 2010 22:27:24 +0000 (UTC)
commit 9d5a58a4e98a8c2160d36f5aa21489d55f49756b
Author: Colin Walters <walters verbum org>
Date: Tue Sep 28 18:16:53 2010 -0400
Fix --include-uninstalled
Somehow, this regressed; i have no idea how. We need to be
comparing Include objects, not string versus Include.
giscanner/transformer.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/giscanner/transformer.py b/giscanner/transformer.py
index acf0df8..f07e8d1 100644
--- a/giscanner/transformer.py
+++ b/giscanner/transformer.py
@@ -51,8 +51,8 @@ class Transformer(object):
self._namespace = namespace
self._pkg_config_packages = set()
self._typedefs_ns = {}
- self._includes = {}
- self._include_names = set()
+ self._includes = {} # <string namespace -> Namespace>
+ self._include_names = set() # string namespace
self._includepaths = []
self._passthrough_mode = False
@@ -131,7 +131,7 @@ class Transformer(object):
"Include path %r must be a filename path ending in .gir" % (include_path, ))
girname = basename[:-4]
include = ast.Include.from_string(girname)
- if girname in self._include_names:
+ if include in self._include_names:
return
self._parse_include(include_path, uninstalled=True)
self._include_names.add(include)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]