[Python-modules-commits] r14104 - in packages/nevow/trunk/debian (5 files)
bernat at users.alioth.debian.org
bernat at users.alioth.debian.org
Sun Aug 1 20:48:19 UTC 2010
Date: Sunday, August 1, 2010 @ 20:48:00
Author: bernat
Revision: 14104
Fix postrm to purge dropin.cache in nevow plugin directories. Also
use twisted-plugins-cache trigger. Provide nevow-plugins-cache trigger
for the same purpose.
Added:
packages/nevow/trunk/debian/triggers
Modified:
packages/nevow/trunk/debian/changelog
packages/nevow/trunk/debian/control
packages/nevow/trunk/debian/postinst
packages/nevow/trunk/debian/postrm
Modified: packages/nevow/trunk/debian/changelog
===================================================================
--- packages/nevow/trunk/debian/changelog 2010-08-01 20:31:01 UTC (rev 14103)
+++ packages/nevow/trunk/debian/changelog 2010-08-01 20:48:00 UTC (rev 14104)
@@ -4,6 +4,9 @@
Canvas.swf. This module is not maintained upstream and could be
removed in the future. Closes: #591198.
* Bump Standards-Version to 3.9.1.
+ * Fix postrm to purge dropin.cache in nevow plugin directories. Also use
+ twisted-plugins-cache trigger. Provide nevow-plugins-cache trigger for
+ the same purpose.
-- Vincent Bernat <bernat at debian.org> Sun, 01 Aug 2010 22:09:57 +0200
Modified: packages/nevow/trunk/debian/control
===================================================================
--- packages/nevow/trunk/debian/control 2010-08-01 20:31:01 UTC (rev 14103)
+++ packages/nevow/trunk/debian/control 2010-08-01 20:48:00 UTC (rev 14104)
@@ -13,7 +13,7 @@
Package: python-nevow
Architecture: all
-Depends: ${misc:Depends}, ${python:Depends}, python-twisted-core (>= 2.4), python-twisted-web (>= 0.6)
+Depends: ${misc:Depends}, ${python:Depends}, dpkg (>= 1.14.17~), python-twisted-core (>= 2.4), python-twisted-web (>= 0.6)
Provides: ${python:Provides}
Replaces: python2.3-nevow (<< 0.7.0-1.1), python2.4-nevow (<< 0.7.0-1.1)
Conflicts: python2.3-nevow (<< 0.7.0-1.1), python2.4-nevow (<< 0.7.0-1.1)
Modified: packages/nevow/trunk/debian/postinst
===================================================================
--- packages/nevow/trunk/debian/postinst 2010-08-01 20:31:01 UTC (rev 14103)
+++ packages/nevow/trunk/debian/postinst 2010-08-01 20:48:00 UTC (rev 14104)
@@ -4,11 +4,23 @@
#DEBHELPER#
+rebuild_cache()
+{
+ # remove all cache files, then rebuild for the installed python versions
+ rm -f /usr/lib/python[23].?/*-packages/nevow/plugins/dropin.cache
+ for p in $(pyversions -i); do
+ $p -c 'from twisted.plugin import IPlugin, getPlugins; import nevow.plugins; list(getPlugins(IPlugin)); list(getPlugins(IPlugin, nevow.plugins))' >/dev/null 2>&1 || true
+ done
+}
+
case "$1" in
+ triggered)
+ if [ "$2" = "nevow-plugins-cache" ]; then
+ rebuild_cache
+ fi
+ ;;
configure)
- for p in $(pyversions -i); do
- $p -c 'from twisted.plugin import IPlugin, getPlugins; import nevow.plugins; list(getPlugins(IPlugin)); list(getPlugins(IPlugin, nevow.plugins))' >/dev/null 2>&1 || true
- done
+ rebuild_cache
;;
esac
Modified: packages/nevow/trunk/debian/postrm
===================================================================
--- packages/nevow/trunk/debian/postrm 2010-08-01 20:31:01 UTC (rev 14103)
+++ packages/nevow/trunk/debian/postrm 2010-08-01 20:48:00 UTC (rev 14104)
@@ -4,8 +4,10 @@
case "$1" in
remove|purge)
- for p in $(pyversions -i); do
- $p -c 'from twisted.plugin import IPlugin, getPlugins; list(getPlugins(IPlugin))' >/dev/null 2>&1 || true
+ find /usr/lib/python[23].*/*-packages/nevow/plugins \
+ -name dropin.cache 2>/dev/null | xargs -r rm -f
+ for d in /usr/lib/python[23].*/*-packages/nevow/plugins; do
+ rmdir $d 2>/dev/null || true
done
;;
esac
Added: packages/nevow/trunk/debian/triggers
===================================================================
--- packages/nevow/trunk/debian/triggers (rev 0)
+++ packages/nevow/trunk/debian/triggers 2010-08-01 20:48:00 UTC (rev 14104)
@@ -0,0 +1,2 @@
+interest nevow-plugins-cache
+activate twisted-plugins-cache
More information about the Python-modules-commits
mailing list