diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 08:37:32 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 08:38:05 +0000 |
commit | 0c50fbfc9ef4f6c538804759ab9f6143ac2d028b (patch) | |
tree | 01c486c5a07cc3495d6d511b83dc4aa5aaaacc6e /debian/cryptsetup.postinst | |
parent | Merging upstream version 2:2.7.1. (diff) | |
download | cryptsetup-0c50fbfc9ef4f6c538804759ab9f6143ac2d028b.tar.xz cryptsetup-0c50fbfc9ef4f6c538804759ab9f6143ac2d028b.zip |
Merging debian version 2:2.7.1-1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/cryptsetup.postinst')
-rw-r--r-- | debian/cryptsetup.postinst | 15 |
1 files changed, 15 insertions, 0 deletions
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 # <failed-install-package> <version> `removing' # <conflicting-package> <version> +# 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 |