summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@src.gnome.org>2009-01-12 21:31:45 +0000
committerColin Walters <walters@src.gnome.org>2009-01-12 21:31:45 +0000
commitc4930c102cb5e1c65a67aab1544d2c6b38988abb (patch)
tree3020bef7b675c78108b6c8ed2ba276d1d3fb6d06
parentb7ecac18be6222eb6cc9adb491bf19661230e6b3 (diff)
downloadgobject-introspection-c4930c102cb5e1c65a67aab1544d2c6b38988abb.tar.gz
Bug 567212: Exit after dumping
The intended use of g_irepository_get_option_group is that your application more transparently supports --introspection-dump; we should exit so that your app doesn't continue trying to launch. svn path=/trunk/; revision=1023
-rw-r--r--girepository/girepository.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/girepository/girepository.c b/girepository/girepository.c
index 56c1e995..540623ae 100644
--- a/girepository/girepository.c
+++ b/girepository/girepository.c
@@ -1174,7 +1174,8 @@ g_irepository_introspect_cb (const char *option_name,
gpointer data,
GError **error)
{
- return g_irepository_dump (value, error);
+ gboolean ret = g_irepository_dump (value, error);
+ exit (ret ? 0 : 1);
}
static const GOptionEntry introspection_args[] = {