[gnome-software] trivial: Remove the requirement that GsApps need sources to be valid
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Remove the requirement that GsApps need sources to be valid
- Date: Wed, 23 Oct 2013 14:48:48 +0000 (UTC)
commit 41d7ff27a86e5ca35ea0ee62a7d24de06b6daffe
Author: Richard Hughes <richard hughsie com>
Date: Wed Oct 23 10:16:31 2013 +0100
trivial: Remove the requirement that GsApps need sources to be valid
src/gs-plugin-loader.c | 6 ------
src/plugins/gs-plugin-epiphany.c | 1 -
2 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index 565e359..9b384d1 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -451,11 +451,6 @@ gs_plugin_loader_app_is_valid (GsApp *app, gpointer user_data)
}
/* don't show apps that do not have the required details */
- if (gs_app_get_source (app) == NULL) {
- g_debug ("app invalid as no source %s",
- gs_plugin_loader_get_app_str (app));
- return FALSE;
- }
if (gs_app_get_name (app) == NULL) {
g_debug ("app invalid as no name %s",
gs_plugin_loader_get_app_str (app));
@@ -711,7 +706,6 @@ gs_plugin_loader_add_os_update_item (GList *list)
app_os = gs_app_new ("os-update");
gs_app_set_kind (app_os, GS_APP_KIND_OS_UPDATE);
gs_app_set_state (app_os, GS_APP_STATE_UPDATABLE);
- gs_app_set_source (app_os, "os-update");
/* TRANSLATORS: this is a group of updates that are not packages and
* are ot shown in the main list */
gs_app_set_name (app_os, _("OS Updates"));
diff --git a/src/plugins/gs-plugin-epiphany.c b/src/plugins/gs-plugin-epiphany.c
index 76f4e75..adfdb3a 100644
--- a/src/plugins/gs-plugin-epiphany.c
+++ b/src/plugins/gs-plugin-epiphany.c
@@ -642,7 +642,6 @@ gs_plugin_refine (GsPlugin *plugin,
app = GS_APP (l->data);
if (gs_app_get_id_kind (app) != GS_APP_ID_KIND_WEBAPP)
continue;
- gs_app_set_source (app, "");
gs_app_set_size (app, 4096);
tmp = gs_app_get_metadata_item (app, "Epiphany::desktop-filename");
if (tmp != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]