1
0
Fork 0

Applying patch from Helmut Grohne <helmut@subdivi.de> to fix installation on bookworm causing file loss (Closes: #1092737).

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-24 06:05:21 +01:00
parent 3cc5ddcd76
commit e31cfd5aef
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
2 changed files with 7 additions and 0 deletions

View file

@ -8,6 +8,8 @@ case "${1}" in
install)
for FILE in zcat zcmp zdiff zegrep zfgrep zgrep
do
# We may move $FILE to $FILE.gzip when we expected $FILE.gzip.usr-is-merged here.
# This is ok, because gzip will be upgraded and overwrite $FILE.gzip.
dpkg-divert --package zutils --quiet --add --rename --divert "/usr/bin/${FILE}.gzip" "/usr/bin/${FILE}"
dpkg-divert --package zutils --quiet --add --rename --divert "/bin/${FILE}.gzip.usr-is-merged" "/bin/${FILE}"
dpkg-divert --package zutils --quiet --add --rename --divert /usr/share/man/man1/${FILE}.gzip.1.gz /usr/share/man/man1/${FILE}.1.gz