summaryrefslogtreecommitdiff
path: root/system-helper
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2020-03-23 16:22:04 +0100
committerAlexander Larsson <alexl@redhat.com>2020-03-23 17:58:04 +0100
commit9208913664830a948e56a909fe61ef4287433a99 (patch)
treef7af28c3cdd0f1cbd98902c440545d63a63342b2 /system-helper
parentcd88ddd2af035b4c7f178a087614f26f229747ef (diff)
downloadflatpak-9208913664830a948e56a909fe61ef4287433a99.tar.gz
Migrate config: Always enable gpg-verify-summary if collection id is set
This used to not be set for collection-id remotes as we used the ostree-metadata branch for resolving. However, we now use the summary always when doing a remote install (and not ostree-metadata for local sideloads), so we still want to verify summary. The signature on the summary is a nice security feature, but it is also a very efficient small file to download to verify that no new summary needs to be downloaded in the no-op update case.
Diffstat (limited to 'system-helper')
-rw-r--r--system-helper/flatpak-system-helper.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/system-helper/flatpak-system-helper.c b/system-helper/flatpak-system-helper.c
index 16232a3c..6c06e5a6 100644
--- a/system-helper/flatpak-system-helper.c
+++ b/system-helper/flatpak-system-helper.c
@@ -1353,6 +1353,7 @@ handle_ensure_repo (FlatpakSystemHelper *object,
{
g_autoptr(FlatpakDir) system = NULL;
g_autoptr(GError) error = NULL;
+ g_autoptr(GError) local_error = NULL;
g_debug ("EnsureRepo %u %s", arg_flags, arg_installation);
@@ -1376,6 +1377,9 @@ handle_ensure_repo (FlatpakSystemHelper *object,
return TRUE;
}
+ if (!flatpak_dir_migrate_config (system, NULL, NULL, &local_error))
+ g_warning ("Failed to migrate configuration for installation %s: %s", arg_installation, local_error->message);
+
flatpak_system_helper_complete_ensure_repo (object, invocation);
return TRUE;