diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-12-23 07:38:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-12-23 07:38:59 +0000 |
commit | 1696825b0466cb479ffccea266be1aac3ac1fa30 (patch) | |
tree | 0fb5b3a284aeb3719c70de81cc53a480d3eebb80 | |
parent | Releasing debian version 20211009-22. (diff) | |
download | bfh-metapackages-1696825b0466cb479ffccea266be1aac3ac1fa30.tar.xz bfh-metapackages-1696825b0466cb479ffccea266be1aac3ac1fa30.zip |
Applying patch from Helmut Grohne <helmut@subdivi.de> to delete /usr/lib/container/divert on package removal.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-x | debian/bfh-container.postrm | 7 | ||||
-rwxr-xr-x | debian/bfh-container.preinst | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/debian/bfh-container.postrm b/debian/bfh-container.postrm index 0af1095..025ef0e 100755 --- a/debian/bfh-container.postrm +++ b/debian/bfh-container.postrm @@ -13,6 +13,13 @@ case "${1}" in do dpkg-divert --package bfh-container --quiet --remove --rename --divert "/usr/lib/container/divert/${FILE}.orig" "/usr/sbin/${FILE}" done + + if test -d /usr/lib/container; then + if test -d /usr/lib/container/divert; then + rmdir --ignore-fail-on-non-empty /usr/lib/container/divert + fi + rmdir --ignore-fail-on-non-empty /usr/lib/container + fi ;; purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) diff --git a/debian/bfh-container.preinst b/debian/bfh-container.preinst index ab15a9c..2a6624f 100755 --- a/debian/bfh-container.preinst +++ b/debian/bfh-container.preinst @@ -4,7 +4,7 @@ set -e case "${1}" in install|upgrade) - mkdir -p /lib/container/divert + mkdir -p /usr/lib/container/divert for FILE in halt poweroff reboot shutdown coldreboot do |