From bc652bee9925a06f7db5eaeed88247044d240fb4 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 10 Dec 2018 13:25:38 -0500 Subject: [PATCH] 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 --- app/flatpak-main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/flatpak-main.c b/app/flatpak-main.c index b7fb20c0..6da89ae4 100644 --- a/app/flatpak-main.c +++ b/app/flatpak-main.c @@ -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);