File: klibc-utils.postinst

package info (click to toggle)
klibc 2.0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 5,240 kB
  • sloc: ansic: 48,401; asm: 2,531; perl: 789; makefile: 231; sh: 160
file content (20 lines) | stat: -rw-r--r-- 546 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

if [ ! -L /usr/share/doc/klibc-utils ] && \
[ -e /usr/share/doc/klibc-utils ]; then
	rm -rf /usr/share/doc/klibc-utils
	cd /usr/share/doc/
	ln -sf libklibc /usr/share/doc/klibc-utils
fi

# Remove diversion which was used during upgrades to stretch.
# This command can be removed after the buster release.
if dpkg --compare-versions "$2" lt 2.0.4-12~; then
    dpkg-divert --package klibc-utils --remove --rename \
		--divert /usr/share/initramfs-tools/hooks/klibc^i-t \
		/usr/share/initramfs-tools/hooks/klibc
fi

#DEBHELPER#