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:
parent
3cc5ddcd76
commit
e31cfd5aef
2 changed files with 7 additions and 0 deletions
5
debian/control
vendored
5
debian/control
vendored
|
@ -18,6 +18,11 @@ Architecture: any
|
||||||
Depends:
|
Depends:
|
||||||
${misc:Depends},
|
${misc:Depends},
|
||||||
${shlibs:Depends},
|
${shlibs:Depends},
|
||||||
|
Breaks:
|
||||||
|
# We must ensure that gzip is upgraded before zutils.postinst runs. As it is
|
||||||
|
# essential, Breaks is sufficient here and the janitor may propose dropping
|
||||||
|
# this relation eventually.
|
||||||
|
gzip (<< 1.12-1.1~),
|
||||||
Suggests:
|
Suggests:
|
||||||
bzip2,
|
bzip2,
|
||||||
lzip,
|
lzip,
|
||||||
|
|
2
debian/zutils.preinst
vendored
2
debian/zutils.preinst
vendored
|
@ -8,6 +8,8 @@ case "${1}" in
|
||||||
install)
|
install)
|
||||||
for FILE in zcat zcmp zdiff zegrep zfgrep zgrep
|
for FILE in zcat zcmp zdiff zegrep zfgrep zgrep
|
||||||
do
|
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 "/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 "/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
|
dpkg-divert --package zutils --quiet --add --rename --divert /usr/share/man/man1/${FILE}.gzip.1.gz /usr/share/man/man1/${FILE}.1.gz
|
||||||
|
|
Loading…
Add table
Reference in a new issue