~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to bin/ivle-buildjail

  • Committer: William Grant
  • Date: 2010-07-28 04:12:08 UTC
  • mfrom: (1790.1.8 codemirror-srsly)
  • Revision ID: grantw@unimelb.edu.au-20100728041208-mciagtog1785oje4
Move from CodePress to CodeMirror. It's now an external dependency, too, so you'll need to install it yourself.

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
    if options.apt_mirror is not None:
80
80
        os.environ['MIRROR'] = options.apt_mirror
81
81
 
 
82
    # Print a final warning to the user that this is a potentially-expensive
 
83
    # operation
 
84
    recreating = "Re-creating" if os.path.exists(build_path) else "Creating"
 
85
    print_mirror = options.apt_mirror or 'http://archive.ubuntu.com/ubuntu'
 
86
    print """%s jail from %s
 
87
Be warned, this may download hundreds of megabytes!
 
88
If this is the wrong source, please cancel now (note that it is too late to
 
89
save the existing jail; you will have to rebuild the jail from scratch now).\
 
90
""" % (recreating, print_mirror)
 
91
 
82
92
    os.system('rm -rf --one-file-system ' + build_path)
83
93
    ivle.jailbuilder.debian.debootstrap_create_jail(conf['jail']['suite'],
84
94
              build_path, mirror=options.apt_mirror)
86
96
    ivle.jailbuilder.debian.apt_update_cache(build_path)
87
97
    # Minimal required packages
88
98
    ivle.jailbuilder.debian.apt_install(build_path,
89
 
            ['python2.5', 'python-cjson', 'python-svn', 'python-configobj'])
 
99
            ['python', 'python-cjson', 'python-svn', 'python-configobj'])
90
100
 
91
101
    ivle.jailbuilder.debian.apt_clean(build_path)
92
102
 
118
128
 
119
129
    ivle.jailbuilder.debian.apt_clean(build_path)
120
130
 
 
131
    # Configure locales to allow en_US.UTF-8 (which IVLE uses)
 
132
    ivle.jailbuilder.debian._execute_in_chroot(build_path,
 
133
        ['locale-gen', 'en_US.UTF-8'])
 
134
 
121
135
if conf['jail']['devmode']:
122
136
    # Copy all console and operating system files into the jail
123
137
    services_path = os.path.join(conf['paths']['share'], 'services')