Bug 7289 - Default output of update-mime-database to non-verbose
Summary: Default output of update-mime-database to non-verbose
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
: 8161 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-21 07:13 UTC by Vincent Untz
Modified: 2007-02-06 04:05 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
patch (4.89 KB, patch)
2006-06-21 07:14 UTC, Vincent Untz
Details | Splinter Review
Updated patch (4.89 KB, patch)
2006-07-16 08:08 UTC, Vincent Untz
Details | Splinter Review
Alternate patch using g_log and filtering out chatter (11.65 KB, patch)
2007-02-02 09:40 UTC, Loïc Minier
Details | Splinter Review

Description Vincent Untz 2006-06-21 07:13:32 UTC
I don't like seeing the output of update-mime-database, so I think adding a
verbose command line switch would be nice.

Patch will follow.
Comment 1 Vincent Untz 2006-06-21 07:14:20 UTC
Created attachment 6004 [details] [review]
patch

IMHO, it'd be best to use -v for verbose and -V for version, but I don't want
to break stuff...
Comment 2 Bastien Nocera 2006-07-09 04:41:09 UTC
To not break stuff the easiest would be to add a "-q" (for quiet)...
Comment 3 Vincent Untz 2006-07-16 08:08:14 UTC
Created attachment 6237 [details] [review]
Updated patch

This adds -q. I'm not fond of the verbose mode by default, though. Especially
since the output doesn't look useful for 99.999% of the people out there ;-)

I don't think this would break anything, but if you prefer -q, I won't fight.
Comment 4 Bastien Nocera 2007-02-02 07:52:58 UTC
*** Bug 8161 has been marked as a duplicate of this bug. ***
Comment 5 Loïc Minier 2007-02-02 09:40:09 UTC
Created attachment 8583 [details] [review]
Alternate patch using g_log and filtering out chatter

Here's the patch I sent in bug 8161 which uses g_log.
Comment 6 Bastien Nocera 2007-02-06 02:51:31 UTC
Pressure works :)

2007-02-06  Bastien Nocera  <hadess@hadess.net>

        * Makefile.am: verbose mode in install mode by default
        * configure.in: up the glib requirements to 2.2
        * update-mime-database.1:
        * update-mime-database.c: (g_log_handler), (usage), (get_type),
        (load_source_file), (write_out_glob), (write_magic_children),
        (write_magic), (delete_old_types), (check_in_path_xdg_data),
        (write_map_entry), (write_parent_entry), (write_parent_list),
        (build_suffixes), (write_suffix_entries), (write_match),
        (write_cache), (main): Patch from Loïc Minier
        <lool+freedesktop@via.ecp.fr> to make the output of
        update-mime-database quiet by default (Closes: #7289)
Comment 7 Loïc Minier 2007-02-06 04:05:55 UTC
Argh, my secret tactic has been uncovered!  :-P


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.