[gnome-software] PackageKit: Don't show installed packages when searching provides



commit 39b2c55cd1fe118bf7fb5896882f94d7e9a0ce3f
Author: Iain Lane <iain orangesquash org uk>
Date:   Mon Jul 10 16:09:54 2017 +0100

    PackageKit: Don't show installed packages when searching provides
    
    The rationale is that something requested to see providers because they
    don't have the right thing installed, so showing results that are
    installed isn't helpful - they're likely to be false positives.

 plugins/packagekit/gs-plugin-packagekit.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plugins/packagekit/gs-plugin-packagekit.c b/plugins/packagekit/gs-plugin-packagekit.c
index 2b96b6c..f91112a 100644
--- a/plugins/packagekit/gs-plugin-packagekit.c
+++ b/plugins/packagekit/gs-plugin-packagekit.c
@@ -619,6 +619,7 @@ gs_plugin_add_search_what_provides (GsPlugin *plugin,
        gs_plugin_status_update (plugin, NULL, GS_PLUGIN_STATUS_WAITING);
        filter = pk_bitfield_from_enums (PK_FILTER_ENUM_NEWEST,
                                         PK_FILTER_ENUM_ARCH,
+                                        PK_FILTER_ENUM_NOT_INSTALLED,
                                         -1);
        results = pk_client_what_provides (PK_CLIENT (priv->task),
                                           filter,


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