summaryrefslogtreecommitdiff
path: root/giscanner/girwriter.py
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2013-02-24 12:07:28 -0500
committerColin Walters <walters@verbum.org>2013-02-26 16:25:11 -0500
commitf17dfbe3e65acd9274c2f98292362b0824564e0d (patch)
tree6af18d5fa7831f67218ad4187dd32d184d806d2d /giscanner/girwriter.py
parentc0ebb1e9888ee745437e87482d0b89c30cab355f (diff)
downloadgobject-introspection-f17dfbe3e65acd9274c2f98292362b0824564e0d.tar.gz
scanner: internals cleanup: Move pkgconfig list to Namespace
Continuation of previous work.
Diffstat (limited to 'giscanner/girwriter.py')
-rw-r--r--giscanner/girwriter.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py
index 58169eba..d6b3485b 100644
--- a/giscanner/girwriter.py
+++ b/giscanner/girwriter.py
@@ -30,17 +30,15 @@ COMPATIBLE_GIR_VERSION = '1.2'
class GIRWriter(XMLWriter):
- def __init__(self, namespace, pkgs):
+ def __init__(self, namespace):
super(GIRWriter, self).__init__()
self.write_comment(
'''This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations. ''')
- self._write_repository(namespace, pkgs)
+ self._write_repository(namespace)
- def _write_repository(self, namespace, packages=None):
- if packages is None:
- packages = frozenset()
+ def _write_repository(self, namespace):
attrs = [
('version', COMPATIBLE_GIR_VERSION),
('xmlns', 'http://www.gtk.org/introspection/core/1.0'),
@@ -50,7 +48,7 @@ and/or use gtk-doc annotations. ''')
with self.tagcontext('repository', attrs):
for include in sorted(namespace.includes):
self._write_include(include)
- for pkg in sorted(set(packages)):
+ for pkg in sorted(set(namespace.exported_packages)):
self._write_pkgconfig_pkg(pkg)
for c_include in sorted(set(namespace.c_includes)):
self._write_c_include(c_include)