mirror of
https://github.com/flatpak/flatpak.git
synced 2026-04-04 23:25:54 -04:00
run: Don't fail completion on empty repos
This lets completion keep working for the run command despite an empty custom installation. Closes: #2585 Approved by: alexlarsson
This commit is contained in:
committed by
Atomic Bot
parent
7c97271958
commit
64133a0c9b
@@ -248,7 +248,8 @@ flatpak_complete_run (FlatpakCompletion *completion)
|
||||
g_option_context_add_group (context, flatpak_context_get_options (arg_context));
|
||||
|
||||
if (!flatpak_option_context_parse (context, options, &completion->argc, &completion->argv,
|
||||
FLATPAK_BUILTIN_FLAG_ALL_DIRS, NULL, NULL, NULL))
|
||||
FLATPAK_BUILTIN_FLAG_ALL_DIRS | FLATPAK_BUILTIN_FLAG_OPTIONAL_REPO,
|
||||
NULL, NULL, NULL))
|
||||
return FALSE;
|
||||
|
||||
switch (completion->argc)
|
||||
|
||||
Reference in New Issue
Block a user