From 14a11943bb86757f4f013ba6eb3eddb738ea7f42 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Wed, 14 Sep 2016 16:22:55 +0200 Subject: [PATCH] update: Make --appstream work again We need to handle opt_appstream before we try to parse the given name as an app. --- app/flatpak-builtins-update.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/flatpak-builtins-update.c b/app/flatpak-builtins-update.c index 0c5eb9b7..612afc9b 100644 --- a/app/flatpak-builtins-update.c +++ b/app/flatpak-builtins-update.c @@ -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;