File: prerm

package info (click to toggle)
upgrade-system 1.2.0.3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 104 kB
  • ctags: 1
  • sloc: sh: 163; python: 11; makefile: 3
file content (42 lines) | stat: -rw-r--r-- 789 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/sh
#
# prerm script for upgrade-system
#
## COPYRIGHT
#  (C) 2004-2010, Martin-Éric Racine <q-funk@iki.fi>
#
## LICENSE
#  This package is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 2 of the License, or
#  (at your option) any later version.
#
# see: dh_installdeb(1)

set -e

case "$1" in
	upgrade|deconfigure)
	;;
	remove)
		if [ -f /etc/apt/preferences ]
		then
			cp /etc/apt/preferences /etc/apt/preferences.old
		fi
	;;
	failed-upgrade)
	;;
	*)
		echo "prerm called with unknown argument \`$1'" >&2
		exit 1
	;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0