gobject-introspection r860 - in trunk: . giscanner



Author: otaylor
Date: Sat Nov  1 23:01:21 2008
New Revision: 860
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=860&view=rev

Log:
2008-11-01  Owen Taylor  <otaylor redhat com>

        Bug 558848 giparser.py: shared library should be optional

        When parsing a .gir, allow the shared-library attribute
        of <namespace/> to be missing: this corresponds to the handling
        in libgirepository and elsewhere.


Modified:
   trunk/ChangeLog
   trunk/giscanner/girparser.py

Modified: trunk/giscanner/girparser.py
==============================================================================
--- trunk/giscanner/girparser.py	(original)
+++ trunk/giscanner/girparser.py	Sat Nov  1 23:01:21 2008
@@ -94,8 +94,9 @@
         assert ns is not None
         self._namespace = Namespace(ns.attrib['name'],
                                     ns.attrib['version'])
-        self._shared_libraries.extend(
-            ns.attrib['shared-library'].split(','))
+        if 'shared-library' in ns.attrib:
+            self._shared_libraries.extend(
+                ns.attrib['shared-library'].split(','))
 
         parser_methods = {
             _corens('alias'): self._parse_alias,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]