~ubuntu-branches/ubuntu/precise/aufs/precise

« back to all changes in this revision

Viewing changes to debian/aufs-tools.preinst

  • Committer: Bazaar Package Importer
  • Author(s): Julian Andres Klode
  • Date: 2007-06-07 16:19:16 UTC
  • Revision ID: james.westby@ubuntu.com-20070607161916-qubx8t6y7ct4r7nq
Tags: 0+20070605-2
* aufs-tools: Remove diversions in postinst, not in preinst (Closes: #427916)
* No new snapshot, as nothing changed upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
set -e
4
 
 
5
 
case "${1}" in
6
 
        upgrade)
7
 
                if dpkg --compare-versions "$2" le-nl "0+20070604-1"; then
8
 
                        for FILE in /usr/sbin/unionctl /usr/share/man/man8/unionctl.8.gz
9
 
                        do
10
 
                                dpkg-divert --package aufs-tools --remove --rename --divert ${FILE}.aufs ${FILE}
11
 
                        done
12
 
                fi
13
 
                ;;
14
 
        install|abort-upgrade)
15
 
                ;;
16
 
        *)
17
 
                echo "preinst called with unknown argument \`${1}'" >&2
18
 
                exit 1
19
 
                ;;
20
 
esac
21
 
 
22
 
#DEBHELPER#
23
 
 
24
 
exit 0