From db192586de30701f07697b9e17d2538e68c00ef0 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 23 Jun 2016 12:54:45 +0200 Subject: [PATCH] make-current: Use find_installed_ref() This means you don't have to specify the arch if you don't want. It will still find supported apps. --- app/flatpak-builtins-make-current.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/flatpak-builtins-make-current.c b/app/flatpak-builtins-make-current.c index 2baa7f83..76e82fee 100644 --- a/app/flatpak-builtins-make-current.c +++ b/app/flatpak-builtins-make-current.c @@ -60,7 +60,12 @@ flatpak_builtin_make_current_app (int argc, char **argv, GCancellable *cancellab app = argv[1]; branch = argv[2]; - ref = flatpak_compose_ref (TRUE, app, branch, opt_arch, error); + ref = flatpak_dir_find_installed_ref (dir, + app, + branch, + opt_arch, + TRUE, FALSE, NULL, + error); if (ref == NULL) return FALSE;