[gnome-software/gnome-3-10] trivial: Correctly ignore unknown nested metadata
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-10] trivial: Correctly ignore unknown nested metadata
- Date: Mon, 28 Oct 2013 13:58:34 +0000 (UTC)
commit 11313e6af6b3104ae33d876fbf11c6d3c831d64a
Author: Richard Hughes <richard hughsie com>
Date: Mon Oct 28 13:58:14 2013 +0000
trivial: Correctly ignore unknown nested metadata
src/plugins/appstream-cache.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/appstream-cache.c b/src/plugins/appstream-cache.c
index d8df24d..9611fc0 100644
--- a/src/plugins/appstream-cache.c
+++ b/src/plugins/appstream-cache.c
@@ -305,7 +305,8 @@ appstream_cache_start_element_cb (GMarkupParseContext *context,
break;
default:
/* ignore unknown entries */
- helper->section_last_known = helper->section;
+ if (helper->section != APPSTREAM_CACHE_SECTION_UNKNOWN)
+ helper->section_last_known = helper->section;
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]