Skip to content

Commit

Permalink
Core: set AppStream.FormatStyle to COLLECTION (#1845)
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit authored May 12, 2022
1 parent 4311f11 commit 4af8992
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Core/FlatpakBackend.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/Core/PackageKitBackend.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4af8992

Please sign in to comment.