File: libgvc6.postinst.in

package info (click to toggle)
graphviz 12.2.1-1
  • links: PTS
  • area: main
  • in suites: experimental
  • size: 78,996 kB
  • sloc: ansic: 141,865; cpp: 12,016; python: 6,862; makefile: 3,950; tcl: 3,092; yacc: 3,029; xml: 2,972; sh: 1,321; objc: 1,159; java: 560; lex: 427; perl: 243; awk: 156; pascal: 138; php: 58; ruby: 49; cs: 31; sed: 1
file content (21 lines) | stat: -rw-r--r-- 688 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
21
#!/bin/sh

set -e

# Remove the old configuration file if present, see README.Debian-packaging
# Needed only in libgraphivzN
if [ -f /usr/lib/graphviz/config ]; then
	rm -f /usr/lib/graphviz/config6
fi
if [ -f /usr/lib/graphviz/config6a ]; then
	rm -f /usr/lib/graphviz/config6a
fi

if test "$1" = configure && dpkg --compare-versions "$2" lt 8.1.0-1 && ! dpkg-query -f '${Status}' -W graphviz | egrep -q 'installed|triggers-awaited|triggers-pending'; then
	# If we upgrade from a pre-trigger version of graphviz and graphviz is absent, we must delete the config file.
	if [ -f /usr/lib/@TRIPLET@/graphviz/config6a ]; then
		rm -f /usr/lib/@TRIPLET@/graphviz/config6a
	fi
fi

#DEBHELPER#