[gnome-software] trivial: Fix up an AppStream parsing problem because of two typos



commit 2050b1199d29bb376f37a5ec93d8b3fb620d68b3
Author: Richard Hughes <richard hughsie com>
Date:   Thu Feb 27 12:03:23 2014 +0000

    trivial: Fix up an AppStream parsing problem because of two typos

 src/plugins/appstream-cache.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/appstream-cache.c b/src/plugins/appstream-cache.c
index 5b0b2d0..3fe2e58 100644
--- a/src/plugins/appstream-cache.c
+++ b/src/plugins/appstream-cache.c
@@ -288,6 +288,7 @@ appstream_cache_start_element_cb (GMarkupParseContext *context,
                else
                        helper->priority = atoi (tmp);
                break;
+
        case APPSTREAM_TAG_CAPTION:
                if (helper->screenshot == NULL ||
                    helper->tag != APPSTREAM_TAG_SCREENSHOT) {
@@ -311,6 +312,7 @@ appstream_cache_start_element_cb (GMarkupParseContext *context,
                        return;
                if (!helper->lang_temp)
                        helper->lang_temp = g_strdup ("C");
+               break;
 
        case APPSTREAM_TAG_VALUE:
                if (helper->tag != APPSTREAM_TAG_METADATA) {
@@ -332,6 +334,7 @@ appstream_cache_start_element_cb (GMarkupParseContext *context,
                                                  "key", &helper->lang_temp,
                                                  G_MARKUP_COLLECT_INVALID))
                        return;
+               break;
 
        case APPSTREAM_TAG_IMAGE:
                if (helper->item_temp == NULL ||


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