~xubuntu-dev/xubuntu-default-settings/trunk

« back to all changes in this revision

Viewing changes to debian/xubuntu-default-settings.postinst

  • Committer: Colin Watson
  • Date: 2012-02-12 01:05:16 UTC
  • Revision ID: cjwatson@canonical.com-20120212010516-mdri8x3thfwhgdy3
Use maintscript support in dh_installdeb rather than writing out
dpkg-maintscript-helper commands by hand.  We now simply Pre-Depend on a
new enough version of dpkg rather than using 'dpkg-maintscript-helper
supports' guards, leading to more predictable behaviour on upgrades.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
set -e
4
4
 
5
 
LASTVER="11.04.10"
6
 
 
7
 
if dpkg-maintscript-helper supports rm_conffile; then
8
 
  dpkg-maintscript-helper rm_conffile \
9
 
    /etc/xdg/xdg-xubuntu/applications/defaults.list "$LASTVER" -- "$@"
10
 
  dpkg-maintscript-helper rm_conffile \
11
 
    /etc/xdg/xdg-xubuntu/Thunar/volmanrc "$LASTVER" -- "$@"
12
 
  dpkg-maintscript-helper rm_conffile \
13
 
    /etc/xdg/xdg-xubuntu/xfce4/mount.rc "$LASTVER" -- "$@"
14
 
  dpkg-maintscript-helper rm_conffile \
15
 
    /etc/xdg/xdg-xubuntu/xfce4/panel/actions-6.rc "$LASTVER" -- "$@"
16
 
  dpkg-maintscript-helper rm_conffile \
17
 
    /etc/xdg/xdg-xubuntu/xfce4/panel/clock-5.rc "$LASTVER" -- "$@"
18
 
  dpkg-maintscript-helper rm_conffile \
19
 
    /etc/xdg/xdg-xubuntu/xfce4/panel/launcher-2.rc "$LASTVER" -- "$@"
20
 
  dpkg-maintscript-helper rm_conffile \
21
 
    /etc/xdg/xdg-xubuntu/xfce4/panel/launcher-3.rc "$LASTVER" -- "$@"
22
 
  dpkg-maintscript-helper rm_conffile \
23
 
    /etc/xdg/xdg-xubuntu/xfce4/panel/pager-3.rc "$LASTVER" -- "$@"
24
 
  dpkg-maintscript-helper rm_conffile \
25
 
    /etc/xdg/xdg-xubuntu/xfce4/panel/panels.xml "$LASTVER" -- "$@"
26
 
  dpkg-maintscript-helper rm_conffile \
27
 
    /etc/xdg/xdg-xubuntu/xfce4/panel/places-2.rc "$LASTVER" -- "$@"
28
 
  dpkg-maintscript-helper rm_conffile \
29
 
    /etc/xdg/xdg-xubuntu/xfce4/panel/separator-3.rc "$LASTVER" -- "$@"
30
 
  dpkg-maintscript-helper rm_conffile \
31
 
    /etc/xdg/xdg-xubuntu/xfce4/panel/systray-4.rc "$LASTVER" -- "$@"
32
 
  dpkg-maintscript-helper rm_conffile \
33
 
    /etc/xdg/xdg-xubuntu/xfce4/panel/tasklist-2.rc "$LASTVER" -- "$@"
34
 
  dpkg-maintscript-helper rm_conffile \
35
 
    /etc/xdg/xdg-xubuntu/xfce4/panel/xfce4-menu-1.rc "$LASTVER" -- "$@"
36
 
  dpkg-maintscript-helper rm_conffile \
37
 
    /etc/xdg/xdg-xubuntu/xfce4/panel/xfce4-mixer-plugin-5.rc "$LASTVER" -- "$@"
38
 
  dpkg-maintscript-helper rm_conffile \
39
 
    /etc/xdg/xdg-xubuntu/xfce4/panel/xfce4-orageclock-plugin-7.rc "$LASTVER" -- "$@"
40
 
  dpkg-maintscript-helper rm_conffile \
41
 
    /etc/xdg/xdg-xubuntu/exaile/settings.ini "$LASTVER" -- "$@"
42
 
  dpkg-maintscript-helper rm_conffile \
43
 
    /etc/xdg/xdg-xubuntu/xfce4/panel/cpugraph-3.rc "$LASTVER" -- "$@"
44
 
fi
45
 
 
46
5
case "$1" in
47
6
  configure|upgrade)
48
7
    if [ -x /usr/lib/lightdm/lightdm-set-defaults ] ; then