From 501802270ed1b8860987c104681b1066e57b1f1c Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Thu, 19 May 2016 19:35:05 +0900 Subject: flatpak-builtins-update.c: Fixed loading of arch option Code was organized in such a way that the --arch option was being ignored. https://bugs.freedesktop.org/show_bug.cgi?id=95489 --- app/flatpak-builtins-update.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/flatpak-builtins-update.c b/app/flatpak-builtins-update.c index 748eed2..9a5dec2 100644 --- a/app/flatpak-builtins-update.c +++ b/app/flatpak-builtins-update.c @@ -123,7 +123,7 @@ flatpak_builtin_update (int argc, g_autoptr(FlatpakDir) dir = NULL; const char *name = NULL; const char *branch = NULL; - const char *arch = opt_arch; + const char *arch = NULL; int i; context = g_option_context_new ("[NAME [BRANCH]] - Update an application or runtime"); @@ -139,8 +139,10 @@ flatpak_builtin_update (int argc, if (argc >= 3) branch = argv[2]; - if (arch == NULL) + if (opt_arch == NULL) arch = flatpak_get_arch (); + else + arch = opt_arch; if (!opt_app && !opt_runtime) opt_app = opt_runtime = TRUE; -- cgit v1.2.1