Only allow one <namespace/> element per <repository/> (#560419)
authorOwen Taylor <otaylor@src.gnome.org>
Wed, 12 Nov 2008 17:16:49 +0000 (17:16 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Wed, 12 Nov 2008 17:16:49 +0000 (17:16 +0000)
commit541ba2200e8ed9d7b61cfe2950eaf54f6819ada8
tree17eb9fcff12ab33775c443cf20b26b66d99ae7eb
parentf072e4cfc30880ab88887afaa5df936c45922305
Only allow one <namespace/> element per <repository/> (#560419)

The logic in girparser.c didn't work very well if there were multiple
<namespace/> nodes within a single <repository/> (context->namespace
was always the overall filename and not the the name specified in the
<namespace/> element for one thing; this would cause aliases to
be mis-prefixed in include modules.) Also check that the "name" in
the <namespace/> node matches the filename.

svn path=/trunk/; revision=902
ChangeLog
girepository/girparser.c