summaryrefslogtreecommitdiff
path: root/debian/prerm
blob: 4a8d477829d376413712336eb5a5f291e5de737a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/sh

set -e

#DEBHELPER#

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