core/twisted/twisted.install
2011-01-06 01:29:30 +01:00

12 lines
282 B
Plaintext

post_install() {
python2 -c 'from twisted.plugin import IPlugin, getPlugins; list(getPlugins(IPlugin))' >/dev/null 2>&1 || return 1
}
post_upgrade() {
post_install
}
post_remove() {
find /usr/lib/python2.7/site-packages/twisted/plugins -name dropin.cache | xargs -r rm -f
}