[gnome-software/gnome-3-10] trivial: Correctly ignore unknown nested metadata



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]