[gnome-software] trivial: Always use the helper to show the unique-id in gs_app_to_string()
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Always use the helper to show the unique-id in gs_app_to_string()
- Date: Thu, 13 Jul 2017 18:19:04 +0000 (UTC)
commit 072880855bbee99108df9734d0bc8e9691623769
Author: Richard Hughes <richard hughsie com>
Date: Thu Jul 13 17:12:00 2017 +0100
trivial: Always use the helper to show the unique-id in gs_app_to_string()
If unique_id_valid is FALSE then we show the cached, wrong thing.
lib/gs-app.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/gs-app.c b/lib/gs-app.c
index 3148691..309bfa5 100644
--- a/lib/gs-app.c
+++ b/lib/gs-app.c
@@ -390,7 +390,7 @@ gs_app_to_string (GsApp *app)
if (priv->id != NULL)
gs_app_kv_lpad (str, "id", priv->id);
if (priv->unique_id != NULL)
- gs_app_kv_lpad (str, "unique-id", priv->unique_id);
+ gs_app_kv_lpad (str, "unique-id", gs_app_get_unique_id (app));
if (priv->scope != AS_APP_SCOPE_UNKNOWN)
gs_app_kv_lpad (str, "scope", as_app_scope_to_string (priv->scope));
if (priv->bundle_kind != AS_BUNDLE_KIND_UNKNOWN) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]