diff options
-rw-r--r-- | abs/core/perl_modules/perl-xml-sax-expat/perl-xml-sax-expat.install | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/abs/core/perl_modules/perl-xml-sax-expat/perl-xml-sax-expat.install b/abs/core/perl_modules/perl-xml-sax-expat/perl-xml-sax-expat.install new file mode 100644 index 0000000..a95c9e3 --- /dev/null +++ b/abs/core/perl_modules/perl-xml-sax-expat/perl-xml-sax-expat.install @@ -0,0 +1,17 @@ +post_install() { +if [ ! -r /usr/lib/perl5/site_perl/current/XML/SAX/ParserDetails.ini ]; then + perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::Expat))->save_parsers()" +fi +} + +post_upgrade() { +if [ ! -r /usr/lib/perl5/site_perl/current/XML/SAX/ParserDetails.ini ]; then + perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::Expat))->save_parsers()" +fi +} + +pre_remove() { + if [[ -f /usr/share/perl5/vendor_perl/XML/SAX/ParserDetails.ini ]]; then + perl -MXML::SAX -e "XML::SAX->remove_parser(q(XML::SAX::Expat))->save_parsers()" + fi +} |