summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/perl_modules/perl-xml-sax/perl-xml-sax.install
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing/perl_modules/perl-xml-sax/perl-xml-sax.install')
-rw-r--r--abs/core-testing/perl_modules/perl-xml-sax/perl-xml-sax.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/abs/core-testing/perl_modules/perl-xml-sax/perl-xml-sax.install b/abs/core-testing/perl_modules/perl-xml-sax/perl-xml-sax.install
new file mode 100644
index 0000000..7b1e1f2
--- /dev/null
+++ b/abs/core-testing/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 $*