~ubuntu-branches/ubuntu/jaunty/venkman/jaunty

« back to all changes in this revision

Viewing changes to debian/postinst

  • Committer: Bazaar Package Importer
  • Author(s): Mike Hommey
  • Date: 2006-11-25 13:09:12 UTC
  • mfrom: (2.1.5 feisty)
  • Revision ID: james.westby@ubuntu.com-20061125130912-lf5wuz22ijh0k8ed
Tags: 0.9.87-6
debian/postinst: Don't invoque chrome updaters (except iceape one) on
first installs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
case "$1" in
27
27
    configure)
28
 
        for ChromeUpdateScript in update-mozilla-chrome \
29
 
                                  update-mozilla-snapshot-chrome \
30
 
                                  update-mozilla-firefox-chrome
31
 
        do
32
 
        # If any Chrome script is in the path, run it.
33
 
                if which $ChromeUpdateScript 2> /dev/null > /dev/null
34
 
                then
 
28
        ChromeUpdateScripts=update-iceape-chrome
 
29
        if [ "$2" ] && dpkg --compare-versions "$2" lt 0.9.87-5; then
 
30
                ChromeUpdateScripts="${ChromeUpdateScripts} update-mozilla-chrome update-mozilla-snapshot-chrome update-mozilla-firefox-chrome"
 
31
        fi
 
32
        for ChromeUpdateScript in ${ChromeUpdateScripts}; do
 
33
                if which $ChromeUpdateScript 2> /dev/null > /dev/null; then
35
34
                        $ChromeUpdateScript
36
35
                fi
37
36
        done
42
41
    ;;
43
42
 
44
43
    *)
45
 
        echo "postinst called with unknown argument \`$1'" >&2
46
 
        exit 1
 
44
        echo "postinst called with unknown argument \`$1'" >&2
 
45
        exit 1
47
46
    ;;
48
47
esac
49
48