File: preinst

package info (click to toggle)
fonts-deva-extra 3.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 3,356 kB
  • sloc: sh: 8; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 397 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
set -e

broken_dir=/etc/fonts/conf.avail/65-0-fonts-deva-extra.conf

if dpkg --compare-versions "$2" lt-nl 3.0-5 \
   && [ -d "$broken_dir" ]; then
	# wonderful hack to replace a wrong directory with a conffile.
	mv "$broken_dir" "$broken_dir".tmp
	mv "$broken_dir.tmp/65-0-fonts-deva-extra.conf" /etc/fonts/conf.avail
	rmdir --ignore-fail-on-non-empty "$broken_dir".tmp
fi

#DEBHELPER#