Disable fancy output for --verbose

The spew of verbose messages makes a mess of any
attempt at formatted output, so lets not try.
Just disable fancy output when --verbose or
--ostree-verbose is used.

Closes: #2371
Approved by: alexlarsson
This commit is contained in:
Matthias Clasen
2018-12-10 13:25:38 -05:00
committed by Atomic Bot
parent ba92cb7126
commit bc652bee99

View File

@@ -305,6 +305,9 @@ flatpak_option_context_parse (GOptionContext *context,
exit (EXIT_SUCCESS);
}
if (opt_verbose > 0 || opt_ostree_verbose)
flatpak_disable_fancy_output ();
if (!(flags & FLATPAK_BUILTIN_FLAG_NO_DIR))
{
dirs = g_ptr_array_new_with_free_func ((GDestroyNotify) g_object_unref);