skeleton/debian/DISTNAME.prerm.tmpl
author Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
Fri, 29 Apr 2011 12:34:53 +0200
changeset 7284 a474cb989546
parent 0 b97547f5f1fa
permissions -rw-r--r--
[js] make _loadAjaxHtmlHead aware of mod_concat-like urls _loadAjaxHtmlHead keeps track of already imported resources (js / css) to make sure they're not included twice, but with mod_concat-like urls, things get a bit more complicated : if BASE_URL/data??foo.js,bar.js is already imported, then loading : BASE_URL/data??bar.js,spam.js should only load spam.js

#!/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#