[gnome-software/gnome-3-32] flatpak: Use apps' unique ID in debug messages
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-32] flatpak: Use apps' unique ID in debug messages
- Date: Thu, 11 Jul 2019 15:42:02 +0000 (UTC)
commit 930bb87d18ea75e88f0bce3a83f8890127f82678
Author: Joaquim Rocha <jrocha endlessm com>
Date: Tue Feb 20 13:43:37 2018 +0100
flatpak: Use apps' unique ID in debug messages
Printing out the simple ID is often insuficient to understand which app
the message is refering to, so when possible, we should always print the
unique ID.
plugins/flatpak/gs-flatpak.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plugins/flatpak/gs-flatpak.c b/plugins/flatpak/gs-flatpak.c
index 2c73ff80..bde75d0b 100644
--- a/plugins/flatpak/gs-flatpak.c
+++ b/plugins/flatpak/gs-flatpak.c
@@ -1698,7 +1698,7 @@ gs_flatpak_refine_app_state_unlocked (GsFlatpak *self,
}
if (ref != NULL) {
g_debug ("marking %s as installed with flatpak",
- gs_app_get_id (app));
+ gs_app_get_unique_id (app));
gs_flatpak_set_metadata_installed (self, app, ref);
if (gs_app_get_state (app) == AS_APP_STATE_UNKNOWN)
gs_app_set_state (app, AS_APP_STATE_INSTALLED);
@@ -1720,12 +1720,12 @@ gs_flatpak_refine_app_state_unlocked (GsFlatpak *self,
if (flatpak_remote_get_disabled (xremote)) {
g_debug ("%s is available with flatpak "
"but %s is disabled",
- gs_app_get_id (app),
+ gs_app_get_unique_id (app),
flatpak_remote_get_name (xremote));
gs_app_set_state (app, AS_APP_STATE_UNAVAILABLE);
} else {
g_debug ("marking %s as available with flatpak",
- gs_app_get_id (app));
+ gs_app_get_unique_id (app));
gs_app_set_state (app, AS_APP_STATE_AVAILABLE);
}
} else {
@@ -2026,7 +2026,7 @@ gs_plugin_refine_item_size (GsFlatpak *self,
return FALSE;
if (gs_app_get_state (app_runtime) == AS_APP_STATE_INSTALLED) {
g_debug ("runtime %s is already installed, so not adding size",
- gs_app_get_id (app_runtime));
+ gs_app_get_unique_id (app_runtime));
} else {
if (!gs_plugin_refine_item_size (self,
app_runtime,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]