mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-20 22:55:16 -04:00
update: Make --appstream work again
We need to handle opt_appstream before we try to parse the given name as an app.
This commit is contained in:
1 parent
1d1189aeab
commit
14a11943bb
1 file changed
+3
-3
@@ -212,15 +212,15 @@ flatpak_builtin_update (int argc,
|
||||
if (opt_arch == NULL)
|
||||
opt_arch = (char *)flatpak_get_arch ();
|
||||
|
||||
if (!flatpak_split_partial_ref_arg (name, &opt_arch, &branch, error))
|
||||
return FALSE;
|
||||
|
||||
if (!opt_app && !opt_runtime)
|
||||
opt_app = opt_runtime = TRUE;
|
||||
|
||||
if (opt_appstream)
|
||||
return update_appstream (dir, name, cancellable, error);
|
||||
|
||||
if (!flatpak_split_partial_ref_arg (name, &opt_arch, &branch, error))
|
||||
return FALSE;
|
||||
|
||||
if (opt_app)
|
||||
{
|
||||
g_auto(GStrv) refs = NULL;
|
||||
|
||||
Reference in new issue
Block a user