repo_appdata: add missing break statement
[platform/upstream/libsolv.git] / ext / repo_appdata.c
index 63c03fc..e987967 100644 (file)
@@ -62,7 +62,9 @@ struct stateswitch {
 /* !! must be sorted by first column !! */
 static struct stateswitch stateswitches[] = {
   { STATE_START,       "applications",  STATE_START,         0 },
+  { STATE_START,       "components",    STATE_START,         0 },
   { STATE_START,       "application",   STATE_APPLICATION,   0 },
+  { STATE_START,       "component",     STATE_APPLICATION,   0 },
   { STATE_APPLICATION, "id",            STATE_ID,            1 },
   { STATE_APPLICATION, "pkgname",       STATE_PKGNAME,       1 },
   { STATE_APPLICATION, "product_license", STATE_LICENCE,     1 },
@@ -434,6 +436,7 @@ endElement(void *userData, const char *name)
     case STATE_PKGNAME:
       id = pool_str2id(pd->pool, pd->content, 1);
       s->requires = repo_addid_dep(pd->repo, s->requires, id, 0);
+      break;
     case STATE_KEYWORD:
       repodata_add_poolstr_array(pd->data, pd->handle, SOLVABLE_KEYWORDS, pd->content);
       break;