[gnome-software/wip/kalev/session-api-regular-packages: 4/5] extras: Allow searching for packages without appdata



commit 6fba2ad2a3a81f3f698ef7b4f2c9af7416c055f1
Author: Kalev Lember <kalevlember gmail com>
Date:   Sun May 10 20:12:17 2015 +0200

    extras: Allow searching for packages without appdata
    
    This makes it possible to use the PackageKit session API to install
    regular packages, as the users of the API have come to expect.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1211948

 src/gs-shell-extras.c |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/src/gs-shell-extras.c b/src/gs-shell-extras.c
index 93f235b..7a875cd 100644
--- a/src/gs-shell-extras.c
+++ b/src/gs-shell-extras.c
@@ -686,7 +686,9 @@ gs_shell_extras_load (GsShellExtras *shell_extras, GPtrArray *array_search_data)
                        gs_plugin_loader_search_files_async (priv->plugin_loader,
                                                             search_data->search_filename,
                                                             GS_PLUGIN_REFINE_FLAGS_DEFAULT |
-                                                            GS_PLUGIN_REFINE_FLAGS_REQUIRE_RATING,
+                                                            GS_PLUGIN_REFINE_FLAGS_REQUIRE_RATING |
+                                                            GS_PLUGIN_REFINE_FLAGS_ALLOW_PACKAGES |
+                                                            GS_PLUGIN_REFINE_FLAGS_ALLOW_NO_APPDATA,
                                                             priv->search_cancellable,
                                                             search_files_cb,
                                                             search_data);
@@ -695,7 +697,9 @@ gs_shell_extras_load (GsShellExtras *shell_extras, GPtrArray *array_search_data)
                        gs_plugin_loader_filename_to_app_async (priv->plugin_loader,
                                                                search_data->package_filename,
                                                                GS_PLUGIN_REFINE_FLAGS_DEFAULT |
-                                                               GS_PLUGIN_REFINE_FLAGS_REQUIRE_RATING,
+                                                               GS_PLUGIN_REFINE_FLAGS_REQUIRE_RATING |
+                                                               GS_PLUGIN_REFINE_FLAGS_ALLOW_PACKAGES |
+                                                               GS_PLUGIN_REFINE_FLAGS_ALLOW_NO_APPDATA,
                                                                priv->search_cancellable,
                                                                filename_to_app_cb,
                                                                search_data);
@@ -708,7 +712,9 @@ gs_shell_extras_load (GsShellExtras *shell_extras, GPtrArray *array_search_data)
                                                                     GS_PLUGIN_REFINE_FLAGS_REQUIRE_HISTORY |
                                                                     
GS_PLUGIN_REFINE_FLAGS_REQUIRE_SETUP_ACTION |
                                                                     
GS_PLUGIN_REFINE_FLAGS_REQUIRE_DESCRIPTION |
-                                                                    GS_PLUGIN_REFINE_FLAGS_REQUIRE_RATING,
+                                                                    GS_PLUGIN_REFINE_FLAGS_REQUIRE_RATING |
+                                                                    GS_PLUGIN_REFINE_FLAGS_ALLOW_PACKAGES |
+                                                                    GS_PLUGIN_REFINE_FLAGS_ALLOW_NO_APPDATA,
                                                                     priv->search_cancellable,
                                                                     get_search_what_provides_cb,
                                                                     search_data);


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