[gnome-software] trivial: Require the license when searching or showing installed packages
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Require the license when searching or showing installed packages
- Date: Fri, 15 Jan 2016 12:07:13 +0000 (UTC)
commit c83053e98ea9a8ad0eccfaa7f8c38ac81ddc8abb
Author: Richard Hughes <richard hughsie com>
Date: Fri Jan 15 12:06:01 2016 +0000
trivial: Require the license when searching or showing installed packages
If a package isn't in the AppStream metadata then we have to manually fetch the
license using PackageKit so we can show a 'nonfree' tag in the search results.
src/gs-shell-installed.c | 1 +
src/gs-shell-search.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell-installed.c b/src/gs-shell-installed.c
index 64d8295..88ee197 100644
--- a/src/gs-shell-installed.c
+++ b/src/gs-shell-installed.c
@@ -236,6 +236,7 @@ gs_shell_installed_load (GsShellInstalled *self)
GS_PLUGIN_REFINE_FLAGS_REQUIRE_VERSION |
GS_PLUGIN_REFINE_FLAGS_REQUIRE_PROVENANCE |
GS_PLUGIN_REFINE_FLAGS_REQUIRE_DESCRIPTION |
+ GS_PLUGIN_REFINE_FLAGS_REQUIRE_LICENCE |
GS_PLUGIN_REFINE_FLAGS_REQUIRE_RATING,
self->cancellable,
gs_shell_installed_get_installed_cb,
diff --git a/src/gs-shell-search.c b/src/gs-shell-search.c
index 9d79e45..95f8496 100644
--- a/src/gs-shell-search.c
+++ b/src/gs-shell-search.c
@@ -164,6 +164,7 @@ gs_shell_search_load (GsShellSearch *self)
GS_PLUGIN_REFINE_FLAGS_REQUIRE_HISTORY |
GS_PLUGIN_REFINE_FLAGS_REQUIRE_SETUP_ACTION |
GS_PLUGIN_REFINE_FLAGS_REQUIRE_DESCRIPTION |
+ GS_PLUGIN_REFINE_FLAGS_REQUIRE_LICENCE |
GS_PLUGIN_REFINE_FLAGS_REQUIRE_RATING,
self->search_cancellable,
gs_shell_search_get_search_cb,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]