mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-19 14:22:18 -04:00
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
This commit is contained in:
committed by
Atomic Bot
parent
5051f51da6
commit
9cfef87e1b
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user