perl-XML-SAX: also unregister the parser in pre_remove().
This commit is contained in:
parent
defc2f028f
commit
22ccb2f478
1 changed files with 9 additions and 1 deletions
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue