mirror of
https://github.com/flatpak/flatpak.git
synced 2026-04-03 06:47:19 -04:00
transaction: Install an extension's required runtime
Closes: #2954
Approved by: alexlarsson
(cherry picked from commit c87c480a18)
Closes: #2992
Approved by: alexlarsson
This commit is contained in:
committed by
Atomic Bot
parent
e4bf242764
commit
1ca31146d3
@@ -1642,11 +1642,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