]> git.saurik.com Git - apt.git/blob - debian/prerm
[ABI break] Allow pinning by codename (closes: #97564)
[apt.git] / debian / prerm
1 #! /bin/sh
2
3 set -e
4
5 #DEBHELPER#
6
7 if [ "$1" = "upgrade" -o "$1" = "failed-upgrade" ] &&
8 dpkg --compare-versions "$2" "<<" 0.4.10
9 then
10 if [ ! -d /var/state/apt/ ]; then
11 ln -s /var/lib/apt /var/state/apt
12 touch /var/lib/apt/lists/partial/.delete-me-later
13 fi
14 fi
15