[gnome-software/gnome-3-28] Ensure generic-updates plugin runs after packagekit-refine



commit 086f4b4bf3ce478a9a1cb009f56a7c08d1aa6e57
Author: Adam Williamson <awilliam redhat com>
Date:   Thu Oct 11 19:12:01 2018 -0700

    Ensure generic-updates plugin runs after packagekit-refine
    
    9eab01082b07acd525b8a390ab6b43136cf400a5 made generic-updates
    check the 'scope' and 'kind' for a package update before adding
    it to the generic 'OS Updates' "app" which is used to display
    updates for packages that aren't appdata-ified. The 'scope' and
    'kind' for package updates are set by packagekit-refine...but
    that change did not ensure that generic-updates runs *after*
    packagekit-refine. This can result in gnome-software failing to
    'see' these generic updates on a first update scan, and only
    picking them up on a retry. To fix this, we should ensure that
    packagekit-refine runs before generic-updates.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1638563
    
    Signed-off-by: Adam Williamson <awilliam redhat com>

 plugins/core/gs-plugin-generic-updates.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/plugins/core/gs-plugin-generic-updates.c b/plugins/core/gs-plugin-generic-updates.c
index d8e2db39..ef79c65b 100644
--- a/plugins/core/gs-plugin-generic-updates.c
+++ b/plugins/core/gs-plugin-generic-updates.c
@@ -28,6 +28,7 @@ void
 gs_plugin_initialize (GsPlugin *plugin)
 {
        gs_plugin_add_rule (plugin, GS_PLUGIN_RULE_RUN_AFTER, "appstream");
+       gs_plugin_add_rule (plugin, GS_PLUGIN_RULE_RUN_AFTER, "packagekit-refine");
 }
 
 static gboolean


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