diff options
Diffstat (limited to 'abs/extra/community/twisted/twisted.install')
-rw-r--r-- | abs/extra/community/twisted/twisted.install | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/abs/extra/community/twisted/twisted.install b/abs/extra/community/twisted/twisted.install new file mode 100644 index 0000000..8e93ffd --- /dev/null +++ b/abs/extra/community/twisted/twisted.install @@ -0,0 +1,11 @@ +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 +} |