~didrocks/ubiquity/intall-metrics

« back to all changes in this revision

Viewing changes to installer

  • Committer: Colin Watson
  • Date: 2006-04-21 11:39:15 UTC
  • Revision ID: colin.watson@canonical.com-20060421113915-7d2d711cd6afc4f5
* Rename from espresso to ubiquity, to better suggest an association with
  Ubuntu. Log output now written to /var/log/installer/syslog rather than
  using the package name.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
import sys
18
18
import os
19
19
import errno
20
 
import espresso
21
 
from espresso import misc
 
20
import ubiquity
 
21
from ubiquity import misc
22
22
 
23
23
cdebconf = False
24
24
 
25
25
TARGET = '/target'
26
26
 
27
 
log_file = '/var/log/installer/espresso'
 
27
log_file = '/var/log/installer/syslog'
28
28
 
29
29
def install(type='gtkui'):
30
30
    '''install(type='gtkui') -> none
31
31
    
32
32
    Get the type of frontend to use and load the module for that.
33
33
    '''
34
 
    mod = __import__('espresso.frontend', globals(), locals() , [type])
 
34
    mod = __import__('ubiquity.frontend', globals(), locals() , [type])
35
35
    ui = getattr(mod, type)
36
36
 
37
37
    unmount_target()
78
78
        # imported by anything.
79
79
        os.environ['DEBCONF_USE_CDEBCONF'] = '1'
80
80
        prepend_path('/usr/lib/cdebconf')
81
 
    prepend_path('/usr/lib/espresso/compat')
 
81
    prepend_path('/usr/lib/ubiquity/compat')
82
82
 
83
 
    if 'ESPRESSO_DEBUG' in os.environ:
 
83
    if 'UBIQUITY_DEBUG' in os.environ:
84
84
        if 'DEBCONF_DEBUG' not in os.environ:
85
85
            os.environ['DEBCONF_DEBUG'] = 'developer|filter'
86
86
 
87
87
    # Clean up old state.
88
 
    if os.path.exists("/var/lib/espresso/apt-installed"):
89
 
        os.unlink("/var/lib/espresso/apt-installed")
90
 
    if os.path.exists("/var/lib/espresso/remove-kernels"):
91
 
        os.unlink("/var/lib/espresso/remove-kernels")
 
88
    if os.path.exists("/var/lib/ubiquity/apt-installed"):
 
89
        os.unlink("/var/lib/ubiquity/apt-installed")
 
90
    if os.path.exists("/var/lib/ubiquity/remove-kernels"):
 
91
        os.unlink("/var/lib/ubiquity/remove-kernels")
92
92
 
93
93
    if len(sys.argv) == 2:
94
94
        install(sys.argv[1])