diff options
| author | Julian Andres Klode <jak@debian.org> | 2015-06-10 14:47:15 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2015-06-10 14:48:14 +0200 |
| commit | 54fb38040f5f314cac9f075685f7e3d77423b7e6 (patch) | |
| tree | 34f6bc7062229b5bcabe5be86f944e1a39dc39ce /debian | |
| parent | 6b404429b1a194acac8627294e5cc5bd826d6167 (diff) | |
| download | python-apt-54fb38040f5f314cac9f075685f7e3d77423b7e6.tar.gz | |
python-apt-doc: Remove the old examples and html directory before upgrade
This somehow has to be done here, otherwise dpkg complains.
Gbp-Dch: ignore
Diffstat (limited to 'debian')
| -rwxr-xr-x | debian/python-apt-doc.preinst | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/python-apt-doc.preinst b/debian/python-apt-doc.preinst new file mode 100755 index 00000000..2c467dd2 --- /dev/null +++ b/debian/python-apt-doc.preinst @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e + +# Remove files that remained +if [ "$1" = "upgrade" ]; then + if test -d /usr/share/doc/python-apt/html; then + rm -r /usr/share/doc/python-apt/html + fi + + if test -d /usr/share/doc/python-apt/examples; then + rm -r /usr/share/doc/python-apt/examples + fi +fi + +#DEBHELPER# |
