Fix calculation of extra-data total size

This is a bug introduced in b03916f5bd
where we check the extra_data refs against app/ or runtime/ prefix with
arguments in the wrong order.

(cherry picked from commit ed3ba39a06)
This commit is contained in:
Alexander Larsson
2020-03-27 17:21:17 +01:00
parent 38cbf76d8f
commit e22fcdefde

View File

@@ -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)