From: Stephan Kulow Date: Sun, 14 Oct 2007 12:13:03 +0000 (+0000) Subject: parse out of helix sources X-Git-Tag: BASE-SuSE-Code-12_1-Branch~308^2~929 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9347d4ddf7a8d2009b5ffd4dc27edced2475288;p=thirdparty%2Flibsolv.git parse out of helix sources --- diff --git a/tools/source_helix.c b/tools/source_helix.c index 89fc57f5..854cee09 100644 --- a/tools/source_helix.c +++ b/tools/source_helix.c @@ -55,6 +55,7 @@ enum state { STATE_PATTERN, STATE_ATOM, STATE_PATCH, + STATE_PRODUCT, STATE_PEPOCH, STATE_PVERSION, @@ -81,6 +82,7 @@ static struct stateswitch stateswitches[] = { { STATE_SUBCHANNEL, "pattern", STATE_PACKAGE, 0 }, { STATE_SUBCHANNEL, "atom", STATE_PACKAGE, 0 }, { STATE_SUBCHANNEL, "patch", STATE_PACKAGE, 0 }, + { STATE_SUBCHANNEL, "product", STATE_PACKAGE, 0 }, { STATE_PACKAGE, "name", STATE_NAME, 1 }, { STATE_PACKAGE, "epoch", STATE_PEPOCH, 1 }, { STATE_PACKAGE, "version", STATE_PVERSION, 1 }, @@ -440,6 +442,7 @@ startElement(void *userData, const char *name, const char **atts) pd->pack = 0; break; + case STATE_PACKAGE: /* solvable name */ if ((pd->pack & PACK_BLOCK) == 0) /* alloc new block ? */ @@ -460,6 +463,8 @@ startElement(void *userData, const char *name, const char **atts) pd->kind = "pattern"; else if (!strcmp(name, "atom")) pd->kind = "atom"; + else if (!strcmp(name, "product")) + pd->kind = "product"; else if (!strcmp(name, "patch")) pd->kind = "patch"; else