changeset 0 | b97547f5f1fa |
-1:000000000000 | 0:b97547f5f1fa |
---|---|
1 #!/bin/sh -e |
|
2 |
|
3 delete_pyo_pyc () { |
|
4 find /usr/share/cubicweb/cubes/%(cubename)s -name "*.pyc" | xargs rm -f |
|
5 find /usr/share/cubicweb/cubes/%(cubename)s -name "*.pyo" | xargs rm -f |
|
6 } |
|
7 |
|
8 |
|
9 case "$1" in |
|
10 failed-upgrade|abort-install|abort-upgrade|disappear) |
|
11 ;; |
|
12 upgrade) |
|
13 delete_pyo_pyc |
|
14 ;; |
|
15 remove) |
|
16 delete_pyo_pyc |
|
17 ;; |
|
18 purge) |
|
19 ;; |
|
20 |
|
21 *) |
|
22 echo "postrm called with unknown argument \`$1'" >&2 |
|
23 exit 1 |
|
24 |
|
25 esac |
|
26 |
|
27 #DEBHELPER# |