Debian Codegraph @

debian/speech-dispatcher.postinst

raw
1 #!/bin/sh
2 set -e
3
4 #DEBHELPER#
5
6 if [ -z "$(dpkg-query -f '${Version}' -W speech-dispatcher-baratinoo 2> /dev/null)" ]
7 then
8 dpkg-maintscript-helper rm_conffile /etc/speech-dispatcher/modules/baratinoo.conf 0.10.2-1\~ speech-dispatcher -- "$@"
9 fi
10
11 if [ -z "$(dpkg-query -f '${Version}' -W speech-dispatcher-ibmtts 2> /dev/null)" ]
12 then
13 dpkg-maintscript-helper rm_conffile /etc/speech-dispatcher/modules/ibmtts.conf 0.10.2-1\~ speech-dispatcher -- "$@"
14 fi
15
16 if [ -z "$(dpkg-query -f '${Version}' -W speech-dispatcher-kali 2> /dev/null)" ]
17 then
18 dpkg-maintscript-helper rm_conffile /etc/speech-dispatcher/modules/kali.conf 0.10.2-1\~ speech-dispatcher -- "$@"
19 fi
20
21 # clean up dynamically created alias symlink which is now shipped in the package itself
22 if dpkg --compare-versions "$2" lt "0.11.5-5.1~"; then
23 rm -f /etc/systemd/system/speech-dispatcher.service
24 fi