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:
Matthias Clasen
2019-01-13 13:41:02 -05:00
committed by Atomic Bot
parent 7c97271958
commit 64133a0c9b

View File

@@ -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)