summaryrefslogtreecommitdiffstats
path: root/debian/libext2fs2t64.preinst
blob: 8c802dba6ec149086844c863dd07389ec5a7631a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

set -e

if test "$1" = install -o "$1" = upgrade; then
    # DEP17 P1 mitigation. Remove these diversions via postinst once trixie is released.
    for lib in e2p.so.2 e2p.so.2.3 ext2fs.so.2 ext2fs.so.2.4; do
	dpkg-divert --package libext2fs2t64 --no-rename --divert "/lib/#DEB_HOST_MULTIARCH#/lib$lib.usr-is-merged" --add "/lib/#DEB_HOST_MULTIARCH#/lib$lib"
    done
fi

#DEBHELPER#