Merge pull request #3203 from wjt/flatpak-remote-ls-app-runtime

builtins: hide runtimes with [list|remote-ls] --app-runtime
This commit is contained in:
Matthias Clasen
2019-10-30 13:11:04 -04:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@@ -440,7 +440,7 @@ flatpak_builtin_list (int argc, char **argv, GCancellable *cancellable, GError *
if (!opt_app && !opt_runtime)
{
opt_app = TRUE;
opt_runtime = TRUE;
opt_runtime = !opt_app_runtime;
}
/* Default to showing installation if we're listing multiple installations */

View File

@@ -411,7 +411,10 @@ flatpak_builtin_remote_ls (int argc, char **argv, GCancellable *cancellable, GEr
return FALSE;
if (!opt_app && !opt_runtime)
opt_app = opt_runtime = TRUE;
{
opt_app = TRUE;
opt_runtime = !opt_app_runtime;
}
if (argc > 2)
return usage_error (context, _("Too many arguments"), error);