debian/cubicweb-keyword.prerm
author Katia Saurfelt <katia.saurfelt@logilab.fr>
Tue, 25 Jan 2011 13:27:44 +0100
changeset 115 4e3061d723fd
parent 9 571150f981e1
permissions -rw-r--r--
[migration cw3.9, cw3.10] add an ITree adapter for Keyword

#!/bin/sh -e

delete_pyo_pyc () {
  find /usr/share/cubicweb/cubes/keyword -name "*.pyc" | xargs rm -f
  find /usr/share/cubicweb/cubes/keyword -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#