diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2023-11-25 19:36:01 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2023-11-25 19:36:01 +0100 |
commit | 018747de1a645fa4eb28ae0f820564df42680f58 (patch) | |
tree | be963195102be66db5f740eb6759d5dfb87866e6 /debian/libsane1.postrm | |
parent | bf2f388431c0476403f71a630c4fd3864200cf9a (diff) |
Merge /bin to /usr/bin
Diffstat (limited to 'debian/libsane1.postrm')
-rw-r--r-- | debian/libsane1.postrm | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/libsane1.postrm b/debian/libsane1.postrm new file mode 100644 index 0000000..6448e00 --- /dev/null +++ b/debian/libsane1.postrm @@ -0,0 +1,23 @@ +#!/bin/sh + +set -e + +# begin-remove-after: released:trixie +# protective diversion of files moved from / to /usr, to avoid file loss. +# Only for upgrades. +if [ "$1" = "remove" ] && [ "$DPKG_MAINTSCRIPT_PACKAGE_REFCOUNT" = "1" ]; then + # Cleanup in case package is removed before upgrade is finished (postinst ran). + dpkg-divert --package usr-is-merged --no-rename \ + --divert /lib/udev/hwdb.d/20-sane.hwdb.usr-is-merged \ + --remove /lib/udev/hwdb.d/20-sane.hwdb + dpkg-divert --package usr-is-merged --no-rename \ + --divert /lib/udev/rules.d/60-libsane1.rules.usr-is-merged \ + --remove /lib/udev/rules.d/60-libsane1.rules + dpkg-divert --package usr-is-merged --no-rename \ + --divert /lib/udev/rules.d/99-libsane1.rules.usr-is-merged \ + --remove /lib/udev/rules.d/99-libsane1.rules +fi +# end-remove-after + +#DEBHELPER# + |