summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdebian/python-apt-doc.preinst16
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#