summaryrefslogtreecommitdiff
path: root/testing/twisted/twisted.install
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-06-07 22:47:46 +0000
committerroot <root@rshg047.dnsready.net>2011-06-07 22:47:46 +0000
commit4d91fc9a2dc38054b8748f27193dc3a6950bda3c (patch)
treed7af2e15a96d98c0495de0d066c0204c6947778c /testing/twisted/twisted.install
parent93a9cde1226d0c82849bc71ff4d481d3d2698dc1 (diff)
Tue Jun 7 22:47:46 UTC 2011
Diffstat (limited to 'testing/twisted/twisted.install')
-rw-r--r--testing/twisted/twisted.install11
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/twisted/twisted.install b/testing/twisted/twisted.install
new file mode 100644
index 000000000..8e93ffd3c
--- /dev/null
+++ b/testing/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
+}