5
migratious_files="libssl3.so libsmime3.so libnssutil3.so libnss3.so"
7
if [ "$1" = "abort-upgrade" -o "$1" = "failed-upgrade" ]; then
9
for f in $migratious_files; do
10
if [ -e /usr/lib/$f.new-migration ]; then
12
mv /usr/lib/$f.new-migration /usr/lib/$f
14
if [ -e /usr/lib/$f.1d.new-migration ]; then
16
mv /usr/lib/$f.1d.new-migration /usr/lib/$f.1d
23
# old-prerm upgrade version
24
# this is the dowgrade cas where we need to reshuffle links before the upgrade happens
25
if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" "le" "3.12.1~rc1-0ubuntu1~fta1ubuntu1"; then
27
for f in $migratious_files; do
28
if [ -L /usr/lib/$f.1d ]; then
29
rm -f /usr/lib/$f.old-migration
30
mv /usr/lib/$f.1d /usr/lib/$f.1d.old-migration
32
if [ -r /usr/lib/$f -a ! -L /usr/lib/$f ]; then
33
rm -f /usr/lib/$f.old-migration
34
mv /usr/lib/$f /usr/lib/$f.old-migration