core/twisted/twisted.install

12 lines
281 B
Plaintext
Raw Normal View History

2010-07-30 14:09:38 +08:00
post_install() {
python -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.6/site-packages/twisted/plugins -name dropin.cache | xargs -r rm -f
}