From d4913d20749b1ef41daa108ffc4736eea7fef437 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Thu, 20 Nov 2008 10:09:47 +0000 Subject: [PATCH] - make unknown elements less fatal --- tools/repo_repomdxml.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/repo_repomdxml.c b/tools/repo_repomdxml.c index 0501fb4..9f9074f 100644 --- a/tools/repo_repomdxml.c +++ b/tools/repo_repomdxml.c @@ -211,9 +211,8 @@ startElement(void *userData, const char *name, const char **atts) if (sw->from != pd->state) { -#if 1 +#if 0 fprintf(stderr, "into unknown: %s (from: %d)\n", name, pd->state); - exit( 1 ); #endif return; } @@ -297,12 +296,12 @@ endElement(void *userData, const char *name) /* Pool *pool = pd->pool; */ #if 0 - fprintf(stderr, "end: %s\n", name); + fprintf(stderr, "endElement: %s\n", name); #endif if (pd->depth != pd->statedepth) { pd->depth--; -#if 1 +#if 0 fprintf(stderr, "back from unknown %d %d %d\n", pd->state, pd->depth, pd->statedepth); #endif return; -- 2.7.4