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.
This commit is contained in:
Alexander Larsson
2016-06-23 12:54:45 +02:00
parent f9ce1b16ed
commit db192586de

View File

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