From 63280ca05819bba1ee8d91def042109f42c54ee4 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Thu, 31 May 2018 18:35:07 +0000
Subject: perl-xml-sax-expat: .install

---
 .../perl-xml-sax-expat/perl-xml-sax-expat.install       | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 abs/core/perl_modules/perl-xml-sax-expat/perl-xml-sax-expat.install

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
+}
-- 
cgit v0.12

