[gnome-software/gnome-3-16] extras: Allow searching for packages without appdata
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-16] extras: Allow searching for packages without appdata
- Date: Mon, 11 May 2015 09:20:05 +0000 (UTC)
commit 618a549f92f0cb81f7b533f7c1fd199f7dc1cf51
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 baab40d..2cc1d0a 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]