summaryrefslogtreecommitdiff
path: root/debian/live-build.preinst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2011-02-02 12:34:45 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:17:34 +0100
commit5964413f16fa41adceeab6afb2f88c8db9be1fd0 (patch)
tree650b8670921cf2adf7f9d8073d92fc26a3697bbf /debian/live-build.preinst
parentafd63ce871544e76406cdec70c67e4268e39d3da (diff)
downloadlive-build-5964413f16fa41adceeab6afb2f88c8db9be1fd0.zip
live-build-5964413f16fa41adceeab6afb2f88c8db9be1fd0.tar.gz
Adding preinst script to remove /usr/share/live/build/includes/squeeze (Closes: #611794).
Diffstat (limited to 'debian/live-build.preinst')
-rw-r--r--debian/live-build.preinst25
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/live-build.preinst b/debian/live-build.preinst
new file mode 100644
index 0000000..1d53a0a
--- /dev/null
+++ b/debian/live-build.preinst
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+set -e
+
+case "${1}" in
+ upgrade)
+ if [ -h /usr/share/live/build/includes/squeeze ]
+ then
+ rm -f /usr/share/live/build/includes/squeeze
+ fi
+ ;;
+
+ install|abort-upgrade)
+
+ ;;
+
+ *)
+ echo "preinst called with unknown argument \`${1}'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0