summaryrefslogtreecommitdiffstats
path: root/abs/extra/community/twisted/twisted.install
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2010-12-03 03:27:30 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2010-12-03 03:27:30 (GMT)
commit50a596f7dec079904365c4685771e26f55e9f645 (patch)
tree6c320445fa5abc7363fe2881ac001cc9c668149b /abs/extra/community/twisted/twisted.install
parent9a9de8a9747fb3aeaeebb39327cf00b5f3bd49a3 (diff)
downloadlinhes_pkgbuild-50a596f7dec079904365c4685771e26f55e9f645.zip
linhes_pkgbuild-50a596f7dec079904365c4685771e26f55e9f645.tar.gz
linhes_pkgbuild-50a596f7dec079904365c4685771e26f55e9f645.tar.bz2
twisted: initial include for deluge
Diffstat (limited to 'abs/extra/community/twisted/twisted.install')
-rw-r--r--abs/extra/community/twisted/twisted.install11
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
+}