File: qgis.preinst

package info (click to toggle)
qgis 3.10.14+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 889,896 kB
  • sloc: cpp: 986,392; python: 156,157; xml: 12,700; perl: 3,286; sh: 2,637; ansic: 2,085; sql: 1,514; javascript: 1,363; yacc: 1,000; lex: 562; lisp: 411; makefile: 234
file content (17 lines) | stat: -rw-r--r-- 347 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e

if [ "$1" = "install" -o "$1" = "upgrade" ]; then
	# Remove obsolete diversions
	for i in /usr/bin/qgis /usr/bin/qbrowser; do
		pkg=$(dpkg-divert --listpackage $i)
		if [ -n "$pkg" -a "$pkg" = qgis-plugin-grass -o "$pkg" = qgis-provider-grass ]; then
			dpkg-divert --package $pkg --remove $i
		fi
	done
fi

#DEBHELPER#

exit 0