dohhhh XML catalog add and remove ops were broken too. Side effect of the

* catalog.c: dohhhh XML catalog add and remove ops were broken too.
  Side effect of the progressive catalog loading
Daniel
This commit is contained in:
Daniel Veillard 2001-11-05 14:21:47 +00:00
parent ad661b9eff
commit ffe09c94fd
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Mon Nov 5 15:20:16 CET 2001 Daniel Veillard <daniel@veillard.com>
* catalog.c: dohhhh XML catalog add and remove ops were broken too.
Side effect of the progressive catalog loading
Mon Nov 5 12:40:54 CET 2001 Daniel Veillard <daniel@veillard.com>
* Makefile.am: confexecdir and confexec_DATA were defined twice

View File

@ -1297,6 +1297,9 @@ xmlAddXMLCatalog(xmlCatalogEntryPtr catal, const xmlChar *type,
((catal->type != XML_CATA_CATALOG) &&
(catal->type != XML_CATA_BROKEN_CATALOG)))
return(-1);
if (catal->children == NULL) {
xmlFetchXMLCatalogFile(catal);
}
typ = xmlGetXMLCatalogEntryType(type);
if (typ == XML_CATA_NONE) {
if (xmlDebugCatalogs)
@ -1357,6 +1360,9 @@ xmlDelXMLCatalog(xmlCatalogEntryPtr catal, const xmlChar *value) {
return(-1);
if (value == NULL)
return(-1);
if (catal->children == NULL) {
xmlFetchXMLCatalogFile(catal);
}
/*
* Scan the children