summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2020-03-27 17:21:17 +0100
committerAlexander Larsson <alexl@redhat.com>2020-03-27 17:41:16 +0100
commite22fcdefde8d1a3463790bb511697077fb9fe06c (patch)
tree202dbe915a51f21410acbc013dfbbd6c9176aced
parent38cbf76d8f7ab165245f7f8c771990a8b12a0b21 (diff)
downloadflatpak-e22fcdefde8d1a3463790bb511697077fb9fe06c.tar.gz
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)
-rw-r--r--common/flatpak-dir.c2
1 files changed, 1 insertions, 1 deletions
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)