From 54fb38040f5f314cac9f075685f7e3d77423b7e6 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Wed, 10 Jun 2015 14:47:15 +0200 Subject: 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 --- debian/python-apt-doc.preinst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 debian/python-apt-doc.preinst (limited to 'debian/python-apt-doc.preinst') 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# -- cgit v1.2.3