From 9cfef87e1b7be25331f91c1b4ca22776e132e921 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Fri, 31 Aug 2018 09:55:30 +0200 Subject: [PATCH] uninstall --unused: Don't ask for ok twice When the uninstall operation was moved to FlatpakCliTransaction the prompting moved there. Unfortunately some prompting was left over in the main code, this just deletes that. This fixes #1928 Closes: #2056 Approved by: alexlarsson --- app/flatpak-builtins-uninstall.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/app/flatpak-builtins-uninstall.c b/app/flatpak-builtins-uninstall.c index 0d084511..13fb55d9 100644 --- a/app/flatpak-builtins-uninstall.c +++ b/app/flatpak-builtins-uninstall.c @@ -291,13 +291,7 @@ flatpak_builtin_uninstall (int argc, char **argv, GCancellable *cancellable, GEr } if (udir->refs->len > 0) - { - g_print (_("Uninstalling from %s:\n"), flatpak_dir_get_name (dir)); - g_ptr_array_sort (udir->refs, flatpak_strcmp0_ptr); - for (i = 0; i < udir->refs->len; i++) - g_print (" %s\n", (char *) udir->refs->pdata[i]); - found_something_to_uninstall = TRUE; - } + found_something_to_uninstall = TRUE; } if (!found_something_to_uninstall) @@ -305,10 +299,6 @@ flatpak_builtin_uninstall (int argc, char **argv, GCancellable *cancellable, GEr g_print (_("Nothing unused to uninstall\n")); return TRUE; } - - if (!opt_yes && - !flatpak_yes_no_prompt (_("Is this ok?"))) - return TRUE; } else {