File: post_distupgrade_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 (40 lines) | stat: -rwxr-xr-x 1,064 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh
set -e

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

if	[ "$PIUPARTS_DISTRIBUTION" = "wheezy" ] || \
	[ "$PIUPARTS_DISTRIBUTION" = "wheezy-proposed" ] ; then

	# libdb4.8/squeeze is part of the minimal squeeze chroot and
	# remains installed after distupgrade even if it no longer
	# exists in wheezy
	# db4.8-util/wheezy Conflicts/Replaces libdb4.8, so ensure it
	# gets removed from the reference chroot, too
	case ${PIUPARTS_OBJECTS%%=*} in
		db4.8-util|cyrus-*-2.2|libcyrus-imap-perl22|sa-learn-cyrus)
			log_debug
			dpkg --purge libdb4.8
			;;
	esac

fi

if	[ "$PIUPARTS_DISTRIBUTION" = "jessie" ] || \
	[ "$PIUPARTS_DISTRIBUTION" = "jessie-proposed" ] ; then

	# libdb5.1/wheezy is part of the minimal wheezy chroot and
	# remains installed after distupgrade even if it no longer
	# exists in jessie
	# db5.1-util/jessie Conflicts/Replaces libdb5.1, so ensure it
	# gets removed from the reference chroot, too
	case ${PIUPARTS_OBJECTS%%=*} in
		db5.1-util)
			log_debug
			dpkg --purge libdb5.1
			;;
	esac

fi