~ubuntu-branches/ubuntu/lucid/debhelper/lucid

« back to all changes in this revision

Viewing changes to autoscripts/preinst-udev-preserve

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2009-01-06 18:03:34 UTC
  • Revision ID: james.westby@ubuntu.com-20090106180334-s6e8gwqyard18hwi
Tags: 7.0.17ubuntu2
dh_installudev: Default priority is now 40 by default, and the target
directory is now /lib/udev/rules.d.  Remove files from /etc/udev/rules.d
unless they are user modified; if modified and of default priority,
take care to rename.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
if [ "$1" = install ] || [ "$1" = upgrade ]; then
 
2
        if [ -e "#OLD#" ]; then
 
3
                if [ "`md5sum \"#OLD#\" | sed -e \"s/ .*//\"`" = \
 
4
                     "`dpkg-query -W -f='${Conffiles}' #PACKAGE# | sed -n -e \"\\\\' #OLD#'s/.* //p\"`" ]
 
5
                then
 
6
                        rm -f "#OLD#"
 
7
                fi
 
8
        fi
 
9
fi