summaryrefslogtreecommitdiff
path: root/debian/prerm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/prerm')
-rwxr-xr-xdebian/prerm11
1 files changed, 11 insertions, 0 deletions
diff --git a/debian/prerm b/debian/prerm
new file mode 100755
index 000000000..64b3635c5
--- /dev/null
+++ b/debian/prerm
@@ -0,0 +1,11 @@
+#! /bin/sh
+
+if [ "$1" = "upgrade" -o "$1" = "failed-upgrade" ] &&
+ dpkg --compare-versions "$2" "<<" 0.4.10
+then
+ if [ ! -d /var/state/apt/ ]; then
+ ln -s /var/lib/apt /var/state/apt
+ touch /var/lib/apt/lists/partial/.delete-me-later
+ fi
+fi
+