[gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 226/331] provenance: Order after apt so we have the origin set



commit 426465e3a28ea5b9240cc9327ab2af0105dcb0dc
Author: Iain Lane <iain orangesquash org uk>
Date:   Wed Apr 13 18:43:08 2016 +0100

    provenance: Order after apt so we have the origin set
    
    ubuntu-specific: apt should use order_before, but this seems buggy and
    creates a loop currently.

 src/plugins/gs-plugin-provenance.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-provenance.c b/src/plugins/gs-plugin-provenance.c
index dd424a4..fd84567 100644
--- a/src/plugins/gs-plugin-provenance.c
+++ b/src/plugins/gs-plugin-provenance.c
@@ -94,6 +94,7 @@ const gchar **
 gs_plugin_order_after (GsPlugin *plugin)
 {
        static const gchar *deps[] = {
+               "apt",
                "packagekit-refine",    /* after the package source is set */
                NULL };
        return deps;
@@ -157,6 +158,7 @@ gs_plugin_refine_app (GsPlugin *plugin,
 
        /* simple case */
        origin = gs_app_get_origin (app);
+       g_debug ("prov: considering %s", gs_app_get_id (app));
        if (origin != NULL && gs_utils_strv_fnmatch (sources, origin)) {
                gs_app_add_quirk (app, AS_APP_QUIRK_PROVENANCE);
                return TRUE;


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