~ubuntu-branches/ubuntu/precise/puppet/precise-proposed

« back to all changes in this revision

Viewing changes to debian/puppet.preinst

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-02-14 11:08:59 UTC
  • Revision ID: package-import@ubuntu.com-20120214110859-8uelxainmwp2dodl
Tags: 2.7.10-1ubuntu1
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:
1
 
#!/bin/sh
2
 
 
3
 
set -e
4
 
 
5
 
# Remove renamed configuration files which are now handled by other
6
 
# packages
7
 
if dpkg-maintscript-helper supports rm_conffile 2>/dev/null; then
8
 
 
9
 
    dpkg-maintscript-helper rm_conffile \
10
 
        /etc/logrotate.d/puppet 2.6.4-2 puppet -- "$@"
11
 
 
12
 
    dpkg-maintscript-helper rm_conffile \
13
 
        /etc/logcheck/ignore.d.server/puppet 2.6.4-2 puppet -- "$@"
14
 
 
15
 
    dpkg-maintscript-helper rm_conffile \
16
 
        /etc/emacs/site-start.d/50puppet-mode-init.el 2.6.4-2 puppet -- "$@"
17
 
 
18
 
fi
19
 
 
20
 
#DEBHELPER#