[gnome-software/1649-support-appstream-merging: 14/18] gs-flatpak: Set GUID on the XbBuilder




commit 0d0492c557b90bdc82f308258c440b0f820c3c5f
Author: Milan Crha <mcrha redhat com>
Date:   Thu Mar 31 14:59:59 2022 +0200

    gs-flatpak: Set GUID on the XbBuilder
    
    To regenerate each minor release. It helps to catch on changes
    in the merging code, in case the remotes did not change.

 plugins/flatpak/gs-flatpak.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/plugins/flatpak/gs-flatpak.c b/plugins/flatpak/gs-flatpak.c
index 1ba4cd76f..41cfb2660 100644
--- a/plugins/flatpak/gs-flatpak.c
+++ b/plugins/flatpak/gs-flatpak.c
@@ -940,6 +940,9 @@ gs_flatpak_rescan_appstream_store (GsFlatpak *self,
        /* add any installed files without AppStream info */
        gs_flatpak_rescan_installed (self, builder, cancellable, error);
 
+       /* regenerate with each minor release */
+       xb_builder_append_guid (builder, PACKAGE_VERSION);
+
        /* create per-user cache */
        blobfn = gs_utils_get_cache_filename (gs_flatpak_get_id (self),
                                              "components.xmlb",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]