summaryrefslogtreecommitdiff
path: root/debian/prerm
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:56:32 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:56:32 +0000
commitb2e465d6d32d2dc884f58b94acb7e35f671a87fe (patch)
tree5928383b9bde7b0ba9812e6526ad746466e558f7 /debian/prerm
parent00b47c98ca4a4349686a082eba6d77decbb03a4d (diff)
Join with aliencode
Author: jgg Date: 2001-02-20 07:03:16 GMT Join with aliencode
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
+