diff -upNr shared-mime-info-0.51.orign/update-mime-database.c shared-mime-info-0.51/update-mime-database.c --- shared-mime-info-0.51.orign/update-mime-database.c 2008-07-20 16:31:39.000000000 +0200 +++ shared-mime-info-0.51/update-mime-database.c 2008-07-23 14:12:22.000000000 +0200 @@ -173,7 +173,7 @@ static void g_log_handler (const gchar static void usage(const char *name) { - g_fprintf(stderr, _("Usage: %s [-hvV] MIME-DIR\n"), name); + g_fprintf(stderr, _("Usage: %s [-hvVq] MIME-DIR\n"), name); } static void free_type(gpointer data) @@ -3340,7 +3340,7 @@ int main(int argc, char **argv) /* Install the filtering log handler */ g_log_set_default_handler(g_log_handler, NULL); - while ((opt = getopt(argc, argv, "hvV")) != -1) + while ((opt = getopt(argc, argv, "hvVq")) != -1) { switch (opt) { @@ -3359,6 +3359,9 @@ int main(int argc, char **argv) enabled_log_levels |= G_LOG_LEVEL_MESSAGE | G_LOG_LEVEL_INFO; break; + case 'q': + enabled_log_levels &= ~G_LOG_LEVEL_WARNING; + break; default: return EXIT_FAILURE; }