]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
make it more robust, just report and skip bad entries. (bnc#441043)
authorKlaus Kaempf <kkaempf@suse.de>
Fri, 7 Nov 2008 10:56:16 +0000 (10:56 +0000)
committerKlaus Kaempf <kkaempf@suse.de>
Fri, 7 Nov 2008 10:56:16 +0000 (10:56 +0000)
tools/repo_zyppdb.c

index c7583ee0a0c245ec06d194b6d88d9249ce20a9e0..0fa0c1d705511df37e3541820792198b64986883 100644 (file)
@@ -318,7 +318,7 @@ repo_add_product(struct parsedata *pd, Repodata *data, FILE *fp)
       if (XML_Parse(parser, buf, l, l == 0) == XML_STATUS_ERROR)
        {
          fprintf(stderr, "repo_zyppdb: %s at line %u:%u\n", XML_ErrorString(XML_GetErrorCode(parser)), (unsigned int)XML_GetCurrentLineNumber(parser), (unsigned int)XML_GetCurrentColumnNumber(parser));
-         exit(1);
+         return;
        }
       if (l == 0)
        break;