File: beets-doc.preinst

package info (click to toggle)
beets 2.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,016 kB
  • sloc: python: 46,429; javascript: 8,018; xml: 334; sh: 261; makefile: 125
file content (24 lines) | stat: -rwxr-xr-x 355 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

set -e

case "$1" in
	upgrade)
		previous="$2"
		if dpkg --compare-versions $2 lt 1.4.9-1~; then
			# Previously the docs were in /usr/share/doc/beets-doc/, with
			# symlinks to beets/
			if [ -L /usr/share/doc/beets/html ]; then
				rm /usr/share/doc/beets/html
			fi
		fi
		;;
	install|abort-upgrade)
		;;
	*)
		;;
esac

#DEBHELPER#

exit 0