File: preinst

package info (click to toggle)
xfce4-utils 4.8.3-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 5,396 kB
  • sloc: sh: 11,502; ansic: 2,028; xml: 1,472; perl: 693; makefile: 374
file content (23 lines) | stat: -rwxr-xr-x 561 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh -e

if [ "$1" = "install" -o "$1" = "upgrade" ]; then
	# Move the old config files before dpkg checks them.
	if [ -d /etc/X11/xdg/xfce4 ]; then
		mkdir -p /etc/xdg/xfce4 || true
		mv /etc/X11/xdg/xfce4/* /etc/xdg/xfce4 || true
		rmdir /etc/X11/xdg/xfce4 || true
	fi

fi

# Remove symlinks for el which appeared in 4.8.2-1
case "$1" in
install|upgrade)
    if dpkg --compare-versions "$2" lt "4.8.2-1"; then
      [ -h /usr/share/doc/xfce4-utils/html/el/images ] && rm /usr/share/doc/xfce4-utils/html/el/images || true
    fi
esac

#DEBHELPER#

exit 0