perl-XML-SAX: also unregister the parser in pre_remove().

This commit is contained in:
Juan RP 2011-06-16 14:55:54 +02:00
parent defc2f028f
commit 22ccb2f478

View file

@ -23,5 +23,13 @@ post_stow()
LC_ALL=C perl -MXML::SAX -e \
"XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()" \
2>&1 >/dev/null
[ $? -eq 0 ] && echo "Added parser to XML::SAX registry."
[ $? -eq 0 ] && msg_normal "Added parser to XML::SAX registry.\n"
}
pre_remove()
{
env LC_ALL=C perl -MXML::SAX -e \
"XML::SAX->remove_parser(q(XML::SAX::PurePerl))->save_parsers()" \
2>&1 >/dev/null
[ $? -eq 0 ] && msg_normal "Removed parser from XML::SAX registry.\n"
}