[gnome-software] Fix the provenance checks for non-refined packages
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Fix the provenance checks for non-refined packages
- Date: Thu, 4 Feb 2016 23:24:20 +0000 (UTC)
commit 9e64447c24ed25e1281e72030b0e9feb0d224810
Author: Richard Hughes <richard hughsie com>
Date: Thu Feb 4 23:23:32 2016 +0000
Fix the provenance checks for non-refined packages
src/plugins/gs-plugin-fedora-provenance.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-fedora-provenance.c b/src/plugins/gs-plugin-fedora-provenance.c
index ec337b0..b5d7c61 100644
--- a/src/plugins/gs-plugin-fedora-provenance.c
+++ b/src/plugins/gs-plugin-fedora-provenance.c
@@ -98,6 +98,13 @@ gs_plugin_fedora_provenance_refine_app (GsApp *app)
"updates-testing-source",
NULL };
+ /* simple case */
+ origin = gs_app_get_origin (app);
+ if (origin != NULL && g_strv_contains (valid, origin)) {
+ gs_app_set_provenance (app, TRUE);
+ return;
+ }
+
/* this only works for packages */
origin = gs_app_get_source_id_default (app);
if (origin == NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]