Bug 628937 - gracefully handle broken schemas
authorRyan Lortie <desrt@desrt.ca>
Mon, 27 Sep 2010 14:27:11 +0000 (10:27 -0400)
committerRyan Lortie <desrt@desrt.ca>
Fri, 1 Oct 2010 15:21:02 +0000 (11:21 -0400)
commite40f3932dd9d924c3197e98f44950561248297ae
tree23d288f13f436a703a740b681aa866c85e0b32b7
parentfff6814973356ac23b1022113632441110825283
Bug 628937 - gracefully handle broken schemas

Implement the first of two features requested in the bug: when
encountering a broken .xml schema file, back out the changes in that
file and continue to parse other files.

This prevents a single broken .xml file from messing up GSettings for
everyone else.

Add a --strict option to get the old behaviour.  Use this from the test
cases.
gio/glib-compile-schemas.c
gio/tests/gschema-compile.c