mirror of
https://github.com/flatpak/flatpak.git
synced 2026-04-13 11:30:34 -04:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user