projects
/
gnome.gobject-introspection
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
251de52
)
Don't assume _pkgconfig_packages is set.
author
Johan Dahlin
<jdahlin@litl.com>
Thu, 26 Feb 2009 13:21:40 +0000
(10:21 -0300)
committer
Johan Dahlin
<johan@gnome.org>
Thu, 26 Feb 2009 14:31:41 +0000
(11:31 -0300)
This fixes a cache issue where the pickle in the cache doesn't
have self._pkgconfig_packages set in its instance
giscanner/girparser.py
patch
|
blob
|
history
diff --git
a/giscanner/girparser.py
b/giscanner/girparser.py
index
62db3e9
..
1db5c6e
100644
(file)
--- a/
giscanner/girparser.py
+++ b/
giscanner/girparser.py
@@
-76,6
+76,8
@@
class GIRParser(object):
return self._includes
def get_pkgconfig_packages(self):
+ if not hasattr(self, '_pkgconfig_packages'):
+ self._pkgconfig_packages = []
return self._pkgconfig_packages
def get_doc(self):
@@
-130,6
+132,8
@@
class GIRParser(object):
self._includes.add(include)
def _parse_pkgconfig_package(self, node):
+ if not hasattr(self, '_pkgconfig_packages'):
+ self._pkgconfig_packages = []
self._pkgconfig_packages.add(node.attrib['name'])
def _parse_alias(self, node):