From 1692a946f563e1378d6fc6e8859c2638139999d6 Mon Sep 17 00:00:00 2001 From: Michael Andres Date: Tue, 25 Feb 2014 11:36:10 +0100 Subject: repo_helix: parse application elements --- ext/repo_helix.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/repo_helix.c b/ext/repo_helix.c index c36c59c..95dac35 100644 --- a/ext/repo_helix.c +++ b/ext/repo_helix.c @@ -100,6 +100,7 @@ static struct stateswitch stateswitches[] = { { STATE_SUBCHANNEL, "atom", STATE_PACKAGE, 0 }, { STATE_SUBCHANNEL, "patch", STATE_PACKAGE, 0 }, { STATE_SUBCHANNEL, "product", STATE_PACKAGE, 0 }, + { STATE_SUBCHANNEL, "application", STATE_PACKAGE, 0 }, { STATE_PACKAGE, "name", STATE_NAME, 1 }, { STATE_PACKAGE, "vendor", STATE_VENDOR, 1 }, { STATE_PACKAGE, "buildtime", STATE_BUILDTIME, 1 }, @@ -461,6 +462,8 @@ startElement(void *userData, const char *name, const char **atts) pd->kind = "product"; else if (!strcmp(name, "patch")) pd->kind = "patch"; + else if (!strcmp(name, "application")) + pd->kind = "application"; else pd->kind = NULL; /* default is package */ pd->levrspace = 1; -- cgit v1.2.3