[gnome-software] When there are no trusted sources mark everything as non-3rd-party



commit a174df63963767cac748ed5382d548ab6fe32053
Author: Richard Hughes <richard hughsie com>
Date:   Tue Mar 1 14:54:02 2016 +0000

    When there are no trusted sources mark everything as non-3rd-party

 src/plugins/gs-plugin-provenance.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-provenance.c b/src/plugins/gs-plugin-provenance.c
index eb60974..666f2ee 100644
--- a/src/plugins/gs-plugin-provenance.c
+++ b/src/plugins/gs-plugin-provenance.c
@@ -106,8 +106,10 @@ gs_plugin_provenance_refine_app (GsPlugin *plugin, GsApp *app)
 
        /* nothing to search */
        sources = (const gchar * const *) plugin->priv->sources;
-       if (sources == NULL || sources[0] == NULL)
+       if (sources == NULL || sources[0] == NULL) {
+               gs_app_add_quirk (app, AS_APP_QUIRK_PROVENANCE);
                return;
+       }
 
        /* simple case */
        origin = gs_app_get_origin (app);


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