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

« back to all changes in this revision

Viewing changes to debian/config

  • 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:
1
 
#!/bin/sh
2
 
 
3
 
set -e
4
 
 
5
 
. /usr/share/debconf/confmodule
6
 
 
7
 
while true; do
8
 
    db_input medium flashplugin-nonfree/local || true
9
 
    db_go
10
 
    db_get flashplugin-nonfree/local
11
 
    if [ -d "$RET" -a -f "$RET"/install_flash_player_7_linux.tar.gz ]; then
12
 
                LOCAL="true"
13
 
                break;
14
 
    elif [ "x$RET" = "x" ]; then
15
 
                break;
16
 
    fi
17
 
    db_reset flashplugin-nonfree/not_exist || true
18
 
    db_reset flashplugin-nonfree/local || true
19
 
    db_text medium flashplugin-nonfree/not_exist || true
20
 
    db_go
21
 
done
22
 
 
23
 
if [ "$LOCAL" = "true" ]; then
24
 
    db_input medium flashplugin-nonfree/delete || true
25
 
    db_go
26
 
else
27
 
    db_input medium flashplugin-nonfree/httpget || true
28
 
    db_go
29
 
    db_get flashplugin-nonfree/httpget
30
 
    if [ "$RET" = "true" ]; then
31
 
                db_get flashplugin-nonfree/http_proxy
32
 
                if [ "$RET" = "" -a "$http_proxy" != "" ]; then
33
 
                        db_set flashplugin-nonfree/http_proxy $http_proxy
34
 
                fi
35
 
                db_input medium flashplugin-nonfree/http_proxy || true
36
 
                db_go
37
 
                db_input medium flashplugin-nonfree/delete || true
38
 
                db_go
39
 
    fi
40
 
fi