3 this_ver=@DEB_VER@; # this version
4 # action: upgrade, abort-upgrade, remove, abort-install, disappear,
5 # purge, or failed-upgrade.
8 test "$context" = failed-upgrade &&
9 dpkg --compare-versions "$this_ver" lt "$2"
11 # postrm of the future failed.
12 # Who knows what it was supposed to do? Abort.
15 new_ver=; # version replacing this one, if any.
19 abort-install|disappear)
26 local added_ver divertto file
29 divertto=${3-$file.single}
32 test "$context" != purge &&
33 dpkg --compare-versions "$new_ver" lt "$added_ver"
35 dpkg-divert --package binutils-multiarch \
36 --remove --rename --divert "$divertto" "$file"
41 for prog in nm objdump objcopy strings strip size \
42 ar ranlib addr2line gprof readelf
44 diversion 2.9.5.0.16-1 "/usr/bin/$prog"
47 if [ "$1" = "remove" ]; then