~agateau/ubiquity/kde-show-os-name

« back to all changes in this revision

Viewing changes to scripts/tzsetup

  • Committer: Colin Watson
  • Date: 2006-04-05 13:14:56 UTC
  • Revision ID: colin.watson@canonical.com-20060405131456-53786dee285d816a
* Reorganise component packaging. Instead of having to modify each d-i
  component to produce an espresso-* binary package (in most cases) and
  having to do coordinated uploads of that package and espresso all the
  time, we now include all the relevant d-i source packages in this one
  (under d-i/source/), build them as part of our build process, and
  include all the components in the espresso binary package. 'debian/rules
  update' can be used to do automatic updates of these copied source
  packages. This should ultimately simplify maintenance work as well as
  making it much easier for third parties to make local changes to this
  installer.
* All FilteredCommand implementations for components now belong to
  espresso rather than to the component (because they were quite tightly
  bound to espresso's UI frontends anyway) and will be removed from
  component packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
set -e
 
3
 
 
4
. /usr/share/debconf/confmodule
 
5
db_capb backup
 
6
 
 
7
# For now, this is a separate script from tzsetup because we want to ask the
 
8
# time zone question even if there's only one plausible zone for the
 
9
# selected language's default country.
 
10
 
 
11
db_get debian-installer/country
 
12
CC="$RET"
 
13
# per-country templates are used for countries with multiple choices
 
14
if db_get "tzsetup/country/$CC"; then
 
15
        db_register "tzsetup/country/$CC" time/zone
 
16
        db_fget time/zone seen
 
17
        if [ "$RET" = false ]; then
 
18
                db_reset time/zone
 
19
        fi
 
20
        db_input high time/zone || :
 
21
        if ! db_go; then
 
22
                exit 10 # back to menu
 
23
        fi
 
24
else
 
25
        db_register time/zone time/zone # might be registered to something else
 
26
        # espresso-tzmap is the same as tzmap, but this gets us around
 
27
        # packaging awkwardnesses for now; later, oem-config-timezone and
 
28
        # espresso-timezone should be merged into a single tzsetup.deb.
 
29
        zone=$(grep "^$CC" /usr/share/tzsetup/espresso-tzmap | cut -d ' ' -f 2)
 
30
        db_set time/zone "$zone"
 
31
        db_input high time/zone || true
 
32
        if ! db_go; then
 
33
                exit 10 # back to menu
 
34
        fi
 
35
fi