summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Andres <ma@suse.de>2014-02-25 11:36:10 +0100
committerMichael Andres <ma@suse.de>2014-02-25 11:36:10 +0100
commit1692a946f563e1378d6fc6e8859c2638139999d6 (patch)
treefae0c7806c0bdb71d5f67a6c4d035e156edc83b0
parentda3898d847cfc414142edf27521bbe63131230dd (diff)
downloadlibsolv-1692a946f563e1378d6fc6e8859c2638139999d6.tar.gz
libsolv-1692a946f563e1378d6fc6e8859c2638139999d6.tar.bz2
libsolv-1692a946f563e1378d6fc6e8859c2638139999d6.zip
repo_helix: parse application elements
-rw-r--r--ext/repo_helix.c3
1 files changed, 3 insertions, 0 deletions
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;