~ubuntu-branches/ubuntu/lucid/twisted-web2/lucid

« back to all changes in this revision

Viewing changes to python-twisted-web2.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-10-05 23:42:38 UTC
  • Revision ID: james.westby@ubuntu.com-20091005234238-spul6zu8qsy4492x
Tags: 8.1.0-2ubuntu1
Regenerate the plugin cache in the postinst. LP: #361865.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
set -e
 
4
 
 
5
#DEBHELPER#
 
6
 
 
7
case "$1" in
 
8
    configure)
 
9
        for p in $(pyversions -i); do
 
10
            $p -c 'from twisted.plugin import IPlugin, getPlugins; list(getPlugins(IPlugin))' >/dev/null 2>&1 || true
 
11
        done
 
12
        ;;
 
13
esac
 
14
 
 
15
exit 0