diff options
-rwxr-xr-x | debian/bfh-container.postrm | 10 | ||||
-rwxr-xr-x | debian/bfh-container.preinst | 2 | ||||
-rw-r--r-- | debian/changelog | 20 |
3 files changed, 31 insertions, 1 deletions
diff --git a/debian/bfh-container.postrm b/debian/bfh-container.postrm index 0af1095..e53463e 100755 --- a/debian/bfh-container.postrm +++ b/debian/bfh-container.postrm @@ -13,6 +13,16 @@ case "${1}" in do dpkg-divert --package bfh-container --quiet --remove --rename --divert "/usr/lib/container/divert/${FILE}.orig" "/usr/sbin/${FILE}" done + + if [ -d /usr/lib/container ] + then + if [ -d /usr/lib/container/divert ] + then + rmdir --ignore-fail-on-non-empty /usr/lib/container/divert > /dev/null 2>&1 + fi + + rmdir --ignore-fail-on-non-empty /usr/lib/container > /dev/null 2>&1 + 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 diff --git a/debian/changelog b/debian/changelog index 6b24939..9a973a9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,23 @@ +bfh-metapackages (20211009-24) sid; urgency=medium + + * Uploading to sid. + * Applying patch from Helmut Grohne <helmut@subdivi.de> to delete + /usr/lib/container/divert on package removal. + * Cosmetically harmonizing directory cleanup in progress-linux + maintainer scripts for better readability. + + -- Daniel Baumann <daniel.baumann@progress-linux.org> Sat, 23 Dec 2023 08:39:55 +0100 + +bfh-metapackages (20211009-23) sid; urgency=medium + + * Uploading to sid. + * Applying patch from Helmut Grohne <helmut@subdivi.de> to delete + /usr/lib/container/divert on package removal. + * Cosmetically harmonizing directory cleanup in progress-linux + maintainer scripts for better readability. + + -- Daniel Baumann <daniel.baumann@progress-linux.org> Sat, 23 Dec 2023 08:39:41 +0100 + bfh-metapackages (20211009-22~progress7.99u1) graograman-backports; urgency=medium * Uploading to graograman-backports, remaining changes: |