From 4af89920e67a1d2784864d3fb20e6df02a320629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Thu, 12 May 2022 20:59:47 +0000 Subject: [PATCH] Core: set AppStream.FormatStyle to COLLECTION (#1845) --- src/Core/FlatpakBackend.vala | 4 ++-- src/Core/PackageKitBackend.vala | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Core/FlatpakBackend.vala b/src/Core/FlatpakBackend.vala index f78fb0e74..a22d275d1 100644 --- a/src/Core/FlatpakBackend.vala +++ b/src/Core/FlatpakBackend.vala @@ -798,7 +798,7 @@ public class AppCenterCore.FlatpakBackend : Backend, Object { #if HAS_APPSTREAM_0_15 user_appstream_pool.reset_extra_data_locations (); - user_appstream_pool.add_extra_data_location (user_metadata_path, AppStream.FormatStyle.METAINFO); + user_appstream_pool.add_extra_data_location (user_metadata_path, AppStream.FormatStyle.COLLECTION); #else user_appstream_pool.clear_metadata_locations (); user_appstream_pool.add_metadata_location (user_metadata_path); @@ -833,7 +833,7 @@ public class AppCenterCore.FlatpakBackend : Backend, Object { #if HAS_APPSTREAM_0_15 system_appstream_pool.reset_extra_data_locations (); - system_appstream_pool.add_extra_data_location (system_metadata_path, AppStream.FormatStyle.METAINFO); + system_appstream_pool.add_extra_data_location (system_metadata_path, AppStream.FormatStyle.COLLECTION); #else system_appstream_pool.clear_metadata_locations (); system_appstream_pool.add_metadata_location (system_metadata_path); diff --git a/src/Core/PackageKitBackend.vala b/src/Core/PackageKitBackend.vala index 83e659c6a..117d6fb22 100644 --- a/src/Core/PackageKitBackend.vala +++ b/src/Core/PackageKitBackend.vala @@ -160,7 +160,7 @@ public class AppCenterCore.PackageKitBackend : Backend, Object { #if HIDE_UPSTREAM_DISTRO_APPS #if HAS_APPSTREAM_0_15 appstream_pool.reset_extra_data_locations (); - appstream_pool.add_extra_data_location ("/usr/share/app-info", AppStream.FormatStyle.METAINFO); + appstream_pool.add_extra_data_location ("/usr/share/app-info", AppStream.FormatStyle.COLLECTION); #else // Only use a user cache, the system cache probably contains all the Ubuntu components appstream_pool.set_cache_flags (AppStream.CacheFlags.USE_USER);