~ubuntu-branches/ubuntu/karmic/bash-completion/karmic

« back to all changes in this revision

Viewing changes to debian/postinst

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2008-04-15 01:21:38 UTC
  • Revision ID: james.westby@ubuntu.com-20080415012138-pker4fsl17s92uty
Tags: 20060301-3ubuntu3
Don't use ucf for handling the bash_completion config file. Avoids
prompting the user for a changed config file, if the config file is
unchanged (and only moved to the bash-completion package). LP: #210013.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
case "$1" in
6
6
    configure)
7
 
        ucf /usr/share/bash/bash_completion /etc/bash_completion
8
 
        ucfr bash-completion /etc/bash_completion
 
7
        # remove ucf configury
 
8
        if which ucf >/dev/null; then
 
9
            ucf --purge /etc/bash_completion
 
10
        fi
 
11
        if which ucfr >/dev/null; then
 
12
            ucfr --purge bash-completion /etc/bash_completion
 
13
        fi
9
14
        ;;
10
15
    abort-upgrade|abort-remove|abort-deconfigure)
11
16
        ;;
12
17
    *)
13
 
        echo "postinst called with unknown argument \`$1'" >&2
14
 
        exit 1
 
18
        echo "postinst called with unknown argument \`$1'" >&2
 
19
        exit 1
15
20
    ;;
16
21
esac
17
22