5
migratious_files="libnspr4.so libplc4.so libplds4.so"
7
if [ "$1" = "abort-upgrade" -o "$1" = "failed-upgrade" ]; then
9
for f in $migratious_files; do
10
if [ -e /usr/lib/XNOLDCONFIG_$f.new-migration ]; then
12
mv /usr/lib/XNOLDCONFIG_$f.new-migration /usr/lib/$f
14
if [ -e /usr/lib/XNOLDCONFIG_$f.0d.new-migration ]; then
16
mv /usr/lib/XNOLDCONFIG_$f.0d.new-migration /usr/lib/$f.0d
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" "4.7.1+1.9-1ubuntu1~"; then
27
for f in $migratious_files; do
28
if [ -L /usr/lib/$f.0d ]; then
29
rm -f /usr/lib/XNOLDCONFIG_$f.old-migration
30
mv /usr/lib/$f.0d /usr/lib/XNOLDCONFIG_$f.0d.old-migration
32
if [ -r /usr/lib/$f -a ! -L /usr/lib/$f ]; then
33
rm -f /usr/lib/XNOLDCONFIG_$f.old-migration
34
mv /usr/lib/$f /usr/lib/XNOLDCONFIG_$f.old-migration