[gnome-software] repos: Only refine package-based repos



commit 482edbbc1aca2a2dd55bb6f40d8381e8afb530e0
Author: Kalev Lember <klember redhat com>
Date:   Thu Mar 14 16:10:53 2019 +0100

    repos: Only refine package-based repos
    
    Make sure we don't end up refining e.g. flatpak based repos when the
    repo names happen match with something in /etc/yum.repos.d.

 plugins/repos/gs-plugin-repos.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/plugins/repos/gs-plugin-repos.c b/plugins/repos/gs-plugin-repos.c
index 714a24f8..08e50c18 100644
--- a/plugins/repos/gs-plugin-repos.c
+++ b/plugins/repos/gs-plugin-repos.c
@@ -181,6 +181,10 @@ gs_plugin_refine_app (GsPlugin *plugin,
        if (gs_app_get_origin_hostname (app) != NULL)
                return TRUE;
 
+       /* make sure we don't end up refining flatpak repos */
+       if (gs_app_get_bundle_kind (app) != AS_BUNDLE_KIND_PACKAGE)
+               return TRUE;
+
        /* ensure valid */
        if (!gs_plugin_repos_setup (plugin, cancellable, error))
                return FALSE;


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