logo       

Re: Error message- ParserDetails.ini?: msg#00064

lang.perl.xml

Subject: Re: Error message- ParserDetails.ini?

--On Thursday, December 18, 2003 10:54 PM +0100 Robin Berjon
<robin.berjon@xxxxxxxxx> wrote:

> It would be absolutely perfect if before doing that you would check if the
> file exists. The reason is that XML::SAX::ParserFactory pick the last parser
> in that file if none is specified. When there already is a file, it is
> highly likely that a parser other that PurePerl is already installed, and
> that that's the one the user wants to use because it'll be much faster than
> PurePerl. Blindly adding PurePerl if the file exists will override that.

Good point. Is there a way to specify where the file should be created?
Another approach is for the binary RPM to hold a prototype, but declare the
file
"%config(noreplace)" so that if the file exists, the new one will be installed
as ParserDetails.ini.rpmnew. To do that, I'd "install" the prototype file in
the package assembly tree (typically under /var/tmp) when creating the binary
RPM.
_______________________________________________
Perl-XML mailing list
Perl-XML@xxxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise