mirror of
https://github.com/flatpak/flatpak.git
synced 2026-04-08 00:49:17 -04:00
transaction: Install an extension's required runtime
Closes: #2954 Approved by: alexlarsson (cherry picked from commitc87c480a18) Closes: #2992 Approved by: alexlarsson (cherry picked from commit1ca31146d3) Closes: #3115 Approved by: alexlarsson (cherry picked from commitf7463733da) Closes: #3117 Approved by: alexlarsson
This commit is contained in:
committed by
Atomic Bot
parent
bb320c303f
commit
18baeac046
@@ -1447,11 +1447,13 @@ add_deps (FlatpakTransaction *self,
|
||||
g_autofree char *runtime_remote = NULL;
|
||||
FlatpakTransactionOperation *runtime_op = NULL;
|
||||
|
||||
if (!g_str_has_prefix (op->ref, "app/"))
|
||||
if (!op->resolved_metakey)
|
||||
return TRUE;
|
||||
|
||||
if (op->resolved_metakey)
|
||||
if (g_str_has_prefix (op->ref, "app/"))
|
||||
runtime_ref = g_key_file_get_string (op->resolved_metakey, "Application", "runtime", NULL);
|
||||
else
|
||||
runtime_ref = g_key_file_get_string (op->resolved_metakey, "ExtensionOf", "runtime", NULL);
|
||||
|
||||
if (runtime_ref == NULL)
|
||||
return TRUE;
|
||||
|
||||
Reference in New Issue
Block a user