skeleton/debian/DISTNAME.prerm.tmpl
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 24 Mar 2011 13:24:26 +0100
brancholdstable
changeset 7104 62c880e5d980
parent 0 b97547f5f1fa
permissions -rw-r--r--
[migration] explicit first step of 3.10.9 migration. Previously there was on a "commit now" confirmation. The reason of the request are now explained and both request must be confirmed.

#!/bin/sh -e

delete_pyo_pyc () {
  find /usr/share/cubicweb/cubes/%(cubename)s -name "*.pyc" | xargs rm -f
  find /usr/share/cubicweb/cubes/%(cubename)s -name "*.pyo" | xargs rm -f
}


case "$1" in
    failed-upgrade|abort-install|abort-upgrade|disappear)
    ;;
    upgrade)
    delete_pyo_pyc
    ;;
    remove)
    delete_pyo_pyc
    ;;
    purge)
    ;;

    *)
        echo "postrm called with unknown argument \`$1'" >&2
        exit 1

esac

#DEBHELPER#