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



commit 797c031bb18268c54a35550273d7eb013e9f7699
Author: Richard Hughes <richard hughsie com>
Date:   Mon Oct 28 13:58:52 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 3d75f6e..4324458 100644
--- a/src/plugins/appstream-cache.c
+++ b/src/plugins/appstream-cache.c
@@ -421,7 +421,8 @@ appstream_cache_start_element_cb (GMarkupParseContext *context,
                break;
        default:
                /* ignore unknown entries */
-               helper->tag_last_known = helper->tag;
+               if (helper->tag != APPSTREAM_TAG_UNKNOWN)
+                       helper->tag_last_known = helper->tag;
                break;
        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]