1
0
Fork 0
zutils/debian/zutils.postinst
Daniel Baumann 720aca52c4
Skipping zcat for now (Closes: #902936, #903931).
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-24 05:56:24 +01:00

31 lines
572 B
Bash
Executable file

#!/bin/sh
set -e
case "${1}" in
configure)
# restoring zcat (#902936, #903931)
for FILE in zcat
do if [ ! -e /bin/${FILE}.gzip ]
then
continue
fi
dpkg-divert --package zutils --quiet --remove --rename --divert /bin/${FILE}.gzip /bin/${FILE}
dpkg-divert --package zutils --quiet --remove --rename --divert /usr/share/man/man1/${FILE}.gzip.1.gz /usr/share/man/man1/${FILE}.1.gz
done
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`${1}'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0