diff options
Diffstat (limited to 'abs/core/perl_modules/perl-xml-sax/perl-xml-sax.install')
-rw-r--r-- | abs/core/perl_modules/perl-xml-sax/perl-xml-sax.install | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/abs/core/perl_modules/perl-xml-sax/perl-xml-sax.install b/abs/core/perl_modules/perl-xml-sax/perl-xml-sax.install new file mode 100644 index 0000000..7b1e1f2 --- /dev/null +++ b/abs/core/perl_modules/perl-xml-sax/perl-xml-sax.install @@ -0,0 +1,15 @@ +post_install() { +if [ ! -r /usr/share/perl5/vendor_perl/XML/SAX/ParserDetails.ini ]; then + perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()" &>/dev/null +fi +} + +post_upgrade() { +if [ ! -r /usr/share/perl5/vendor_perl/XML/SAX/ParserDetails.ini ]; then + perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()" &>/dev/null +fi +} + +op=$1 +shift +$op $* |