[arch-commits] Commit in twisted/trunk (PKGBUILD twisted.install)
Date: Sunday, August 29, 2010 @ 12:19:48 Author: remy Revision: 89108 Fix twisted.install to use new python paths. Modified: twisted/trunk/PKGBUILD twisted/trunk/twisted.install -+ PKGBUILD|2 +- twisted.install |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) Modified: PKGBUILD === --- PKGBUILD2010-08-29 14:20:27 UTC (rev 89107) +++ PKGBUILD2010-08-29 16:19:48 UTC (rev 89108) @@ -5,7 +5,7 @@ pkgname=twisted pkgver=10.0.0 -pkgrel=2 +pkgrel=3 pkgdesc=Asynchronous networking framework written in Python. arch=('i686' 'x86_64') url=http://twistedmatrix.com/; Modified: twisted.install === --- twisted.install 2010-08-29 14:20:27 UTC (rev 89107) +++ twisted.install 2010-08-29 16:19:48 UTC (rev 89108) @@ -1,5 +1,5 @@ post_install() { - python -c 'from twisted.plugin import IPlugin, getPlugins; list(getPlugins(IPlugin))' /dev/null 21 || return 1 + python2 -c 'from twisted.plugin import IPlugin, getPlugins; list(getPlugins(IPlugin))' /dev/null 21 || return 1 } post_upgrade() { @@ -7,5 +7,5 @@ } post_remove() { - find /usr/lib/python2.6/site-packages/twisted/plugins -name dropin.cache | xargs -r rm -f + find /usr/lib/python2.7/site-packages/twisted/plugins -name dropin.cache | xargs -r rm -f }
[arch-commits] Commit in twisted/trunk (PKGBUILD twisted.install)
Date: Thursday, January 21, 2010 @ 06:15:53 Author: giovanni Revision: 64606 upgpkg: twisted 9.0.0-2 Fixed FS17939 Added: twisted/trunk/twisted.install Modified: twisted/trunk/PKGBUILD -+ PKGBUILD|4 +++- twisted.install | 11 +++ 2 files changed, 14 insertions(+), 1 deletion(-) Modified: PKGBUILD === --- PKGBUILD2010-01-21 08:42:53 UTC (rev 64605) +++ PKGBUILD2010-01-21 11:15:53 UTC (rev 64606) @@ -4,18 +4,20 @@ pkgname=twisted pkgver=9.0.0 -pkgrel=1 +pkgrel=2 pkgdesc=Asynchronous networking framework written in Python. arch=('i686' 'x86_64') url=http://twistedmatrix.com/; license=('MIT') depends=('python' 'pycrypto' 'zope-interface') optdepends=('pyopenssl') +install=twisted.install source=(http://tmrc.mit.edu/mirror/twisted/Twisted/${pkgver%.*}/Twisted-${pkgver}.tar.bz2) md5sums=('93fc2756a09ffd1350c046cc940e4311') build() { cd ${srcdir}/Twisted-${pkgver} + python setup.py install --prefix=/usr --root=$pkgdir || return 1 install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE || return 1 } Added: twisted.install === --- twisted.install (rev 0) +++ twisted.install 2010-01-21 11:15:53 UTC (rev 64606) @@ -0,0 +1,11 @@ +post_install() { + python -c 'from twisted.plugin import IPlugin, getPlugins; list(getPlugins(IPlugin))' /dev/null 21 || return 1 +} + +post_upgrade() { + post_install +} + +post_remove() { + find /usr/lib/python2.6/site-packages/twisted/plugins -name dropin.cache | xargs -r rm -f +}