[gnome-software] trivial: Fix make check by not setting the installed state twice
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Fix make check by not setting the installed state twice
- Date: Fri, 8 Mar 2013 09:06:28 +0000 (UTC)
commit 9f429568c1fdc2d1f90c9eccca80a9855ba34eb2
Author: Richard Hughes <richard hughsie com>
Date: Thu Mar 7 21:59:25 2013 +0000
trivial: Fix make check by not setting the installed state twice
src/plugins/gs-plugin-datadir-apps.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-datadir-apps.c b/src/plugins/gs-plugin-datadir-apps.c
index 3ed976d..4247652 100644
--- a/src/plugins/gs-plugin-datadir-apps.c
+++ b/src/plugins/gs-plugin-datadir-apps.c
@@ -240,7 +240,8 @@ gs_plugin_refine (GsPlugin *plugin, GList *list, GError **error)
goto out;
/* we know it's installed as we read the desktop file */
- gs_app_set_state (app, GS_APP_STATE_INSTALLED);
+ if (gs_app_get_state (app) == GS_APP_STATE_UNKNOWN)
+ gs_app_set_state (app, GS_APP_STATE_INSTALLED);
}
out:
return ret;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]