Commit 233f2ea6 authored by Julien Cristau's avatar Julien Cristau
Browse files

[debian] use dh_python2

parent 8bc0f2347763
......@@ -2,13 +2,18 @@ Source: cubicweb-forgotpwd
Section: web
Priority: optional
Maintainer: LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
Build-Depends: debhelper (>= 5.0.37.1), python (>= 2.4), python-dev (>= 2.4)
Build-Depends: debhelper (>= 7), python (>= 2.6.5)
Standards-Version: 3.8.0
Homepage: http://www.cubicweb.org/project/cubicweb-forgotpwd
Package: cubicweb-forgotpwd
Architecture: all
Depends: cubicweb-common (>= 3.19.0), python-crypto, python-imaging
Depends:
cubicweb-common (>= 3.19.0),
python-crypto,
python-imaging,
${python:Depends},
${misc:Depends},
Description: password recovery component for the CubicWeb framework
This CubicWeb component provides password recovery functionnality.
.
......
#!/bin/sh -e
delete_pyo_pyc () {
find /usr/share/cubicweb/cubes/forgotpwd -name "*.pyc" | xargs rm -f
find /usr/share/cubicweb/cubes/forgotpwd -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#
......@@ -38,6 +38,7 @@ binary-indep: build install
dh_installdocs -i
dh_installman -i
dh_link -i
dh_python2 -i /usr/share/cubicweb
dh_compress -i -X.py -X.ini -X.xml -Xtest
dh_fixperms -i
dh_installdeb -i
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment