preinst: Add a comment with some motivation

This commit is contained in:
Andrej Shadura 2025-01-03 15:14:54 +01:00
parent 397d3a0bb7
commit 0503bf8eed
No known key found for this signature in database
GPG Key ID: 2526E9EB828A8F35

2
debian/dash.preinst vendored
View File

@ -18,6 +18,8 @@ if [ "$1" = upgrade ] && dpkg --compare-versions "$2" lt 0.5.12-9~; then
# We have no other debconf usage in dash, so we can purge rightaway.
db_purge || true
else
# The chances of anyone hitting this branch are very slim.
# If they do, they will appreciate letting them change their diversion.
echo "ERROR: Found ineffective diversion of /bin/sh!" >&2
echo "To keep using alternative default shell, divert /usr/bin/sh instead." >&2
echo "Aborting upgrade. Resolve the issue and try again." >&2