File: pre_remove_exceptions

package info (click to toggle)
piuparts 0.62
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 1,692 kB
  • sloc: python: 6,823; sh: 2,194; makefile: 126
file content (26 lines) | stat: -rwxr-xr-x 738 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
set -e

log_debug() {
	echo "Debug: piuparts exception for package $PIUPARTS_OBJECTS"
}

case ${PIUPARTS_OBJECTS%%=*} in
	isdnlog|isdnutils)
		#WORKSAROUND #431855: fails with "There are still files in /etc/isdn/ that you may want to remove manually."
		if [ "$PIUPARTS_DISTRIBUTION" = "lenny" ]; then
			log_debug
			rm -fv /etc/isdn/*
		fi
		;;
	apt-listbugs)
		log_debug
		# cleanup from post_install_exceptions
		rm -f /usr/sbin/apt-listbugs
		dpkg-divert --remove --rename /usr/sbin/apt-listbugs
		;;
esac

# Allow removal of the kernel running on the host from the chroot.
UNAME_R="$(uname -r)"
echo "linux-image-$UNAME_R linux-image-$UNAME_R/prerm/removing-running-kernel-$UNAME_R boolean false" | debconf-set-selections