From e22fcdefde8d1a3463790bb511697077fb9fe06c Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Fri, 27 Mar 2020 17:21:17 +0100 Subject: [PATCH] Fix calculation of extra-data total size This is a bug introduced in b03916f5bdf878ba42af7ccf569233b839d4b3d2 where we check the extra_data refs against app/ or runtime/ prefix with arguments in the wrong order. (cherry picked from commit ed3ba39a06d47d384a50e3a6264d411f3bf20a5d) --- common/flatpak-dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/flatpak-dir.c b/common/flatpak-dir.c index c28e5098..054db04b 100644 --- a/common/flatpak-dir.c +++ b/common/flatpak-dir.c @@ -4942,7 +4942,7 @@ flatpak_dir_setup_extra_data (FlatpakDir *self, g_assert (results == NULL || rev != NULL); /* ostree-metadata and appstreams never have extra data, so ignore those */ - if (g_str_has_prefix ("app/", ref) || g_str_has_prefix ("runtime/", ref)) + if (g_str_has_prefix (ref, "app/") || g_str_has_prefix (ref, "runtime/")) { extra_data_sources = flatpak_repo_get_extra_data_sources (repo, rev, cancellable, NULL); if (extra_data_sources == NULL)