From 0c50fbfc9ef4f6c538804759ab9f6143ac2d028b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 10:37:32 +0200 Subject: Merging debian version 2:2.7.1-1. Signed-off-by: Daniel Baumann --- debian/cryptsetup.postinst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'debian/cryptsetup.postinst') diff --git a/debian/cryptsetup.postinst b/debian/cryptsetup.postinst index 635324b..6643d4e 100644 --- a/debian/cryptsetup.postinst +++ b/debian/cryptsetup.postinst @@ -14,6 +14,21 @@ set -e # `removing' # +# begin-remove-after: released:forky +if [ "$1" = configure ] && + [ "$(dpkg-divert --truename /usr/lib/cryptsetup/askpass)" = /usr/lib/cryptsetup/askpass.usr-is-merged ] && + [ "$(dpkg-divert --listpackage /usr/lib/cryptsetup/askpass)" = cryptsetup-nuke-password ]; then + # /usr/lib/cryptsetup/askpass is still diverted in the same way as our + # preinst did. Conclude that cryptsetup-nuke-password was installed + # during preinst, we duplicated the diversion and now + # cryptsetup-nuke-password is removed. We have to clean up. + echo "Removing duplicated diversion of /usr/lib/cryptsetup/askpass after cryptsetup-nuke-password is removed." + dpkg-divert --rename --package cryptsetup-nuke-password \ + --divert /usr/lib/cryptsetup/askpass.usr-is-merged \ + --remove /usr/lib/cryptsetup/askpass +fi +# end-remove-after + case "$1" in configure) for file in cryptdisks_start cryptdisks_stop; do -- cgit v1.2.3