File: preinst

package info (click to toggle)
xen-tools 4.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 1,476 kB
  • sloc: perl: 4,942; sh: 1,690; makefile: 268
file content (38 lines) | stat: -rwxr-xr-x 609 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh

set -e

#
# Skip, if we are not in "configure" state
#

if [ "$1" != "upgrade" ]; then
        exit 0
fi

#
# 2.x -> 3.x
#
if [ -L "/usr/lib/xen-tools/dapper.d" ]; then
        rm /usr/lib/xen-tools/dapper.d
fi
if [ -L "/usr/lib/xen-tools/edgy.d" ]; then
        rm /usr/lib/xen-tools/edgy.d
fi
if [ -d "/usr/lib/xen-tools/ubuntu.d" ]; then
	rm -r /usr/lib/xen-tools/ubuntu.d
fi

#
# 4.1 -> 4.2
#

if [ -L "/usr/lib/xen-tools/intrepid.d" ]; then
        rm /usr/lib/xen-tools/intrepid.d
fi
if [ -L "/usr/lib/xen-tools/karmic.d" ]; then
        rm /usr/lib/xen-tools/karmic.d
fi

#DEBHELPER#
exit 0