~ubuntu-branches/debian/squeeze/flashplugin-nonfree/squeeze

« back to all changes in this revision

Viewing changes to debian/postinst

  • Committer: Bazaar Package Importer
  • Author(s): Bart Martens
  • Date: 2008-09-01 18:53:07 UTC
  • mfrom: (1.1.9 edgy)
  • Revision ID: james.westby@ubuntu.com-20080901185307-l10hkik83hzl2hxc
Tags: 1:1.7.2
Edited update-flashplugin-nonfree to add the use of update-alternatives,
removed debian/links.amd64 and debian/links.i386, edited debian/rules to
remove the creation and deletion of debian/links, edited debian/dirs to
remove obsolete browser plugin directories.  Closes: #494266.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
set -e
4
4
 
5
 
. /usr/share/debconf/confmodule
6
 
 
7
5
case "$1" in
8
 
    configure*)
9
 
    db_get flashplugin-nonfree/local
10
 
    if [ -d "$RET" -a -f "$RET"/flash_linux.tar.gz ]; then
11
 
        LOCALFILE="-l $RET"
12
 
        INSTALL="true"
13
 
    fi
14
 
    if [ -z "$LOCALFILE" ]; then
15
 
        db_get flashplugin-nonfree/httpget
16
 
        if [ "$RET" = "true" ]; then
17
 
            INSTALL=$RET
18
 
            db_get flashplugin-nonfree/http_proxy
19
 
            HTTP_PROXY=$RET
20
 
        fi
21
 
    fi
22
 
    db_get flashplugin-nonfree/delete
23
 
    if [ "$RET" = "true" ]; then
24
 
        DELETE="-d"
25
 
    fi
26
 
    
27
 
    if [ "$INSTALL" = "true" ]; then
28
 
        http_proxy=$HTTP_PROXY /usr/sbin/update-flashplugin $DELETE $LOCALFILE || true
29
 
    fi
 
6
    configure)
 
7
        update-flashplugin-nonfree --install --fast || \
 
8
        echo "Try again later with \"update-flashplugin-nonfree --install\"."
 
9
    ;;
 
10
 
 
11
    abort-upgrade|abort-remove|abort-deconfigure)
 
12
    ;;
 
13
 
 
14
    *)
 
15
        echo "postinst called with unknown argument \`$1'" >&2
 
16
        exit 1
30
17
    ;;
31
18
esac
32
19
 
33
20
#DEBHELPER#
 
21
 
 
22
exit 0
 
23
 
 
24