[gnome-software] trivial: Do not log a warning when trying to overwrite metadata keys
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Do not log a warning when trying to overwrite metadata keys
- Date: Wed, 13 Apr 2016 16:35:57 +0000 (UTC)
commit 2898bbadefca8d6527439f8f84d05ca51eaee072
Author: Richard Hughes <richard hughsie com>
Date: Wed Apr 13 16:30:48 2016 +0100
trivial: Do not log a warning when trying to overwrite metadata keys
src/plugins/gs-appstream.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-appstream.c b/src/plugins/gs-appstream.c
index 4ddd0d2..1002b54 100644
--- a/src/plugins/gs-appstream.c
+++ b/src/plugins/gs-appstream.c
@@ -244,6 +244,8 @@ gs_appstream_copy_metadata (GsApp *app, AsApp *item)
for (l = keys; l != NULL; l = l->next) {
const gchar *key = l->data;
const gchar *value = g_hash_table_lookup (hash, key);
+ if (gs_app_get_metadata_item (app, key) != NULL)
+ continue;
gs_app_set_metadata (app, key, value);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]