~cprov/uci-engine/tarmac-multienv

« back to all changes in this revision

Viewing changes to charms/precise/chroot-builder/hooks/hooks.py

  • Committer: Evan Dandrea
  • Date: 2014-06-30 12:07:54 UTC
  • mfrom: (630 uci-engine)
  • mto: This revision was merged to the branch mainline in revision 655.
  • Revision ID: evan.dandrea@canonical.com-20140630120754-z6x5eqdahpp2qfrt
Merge with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
2
2
# Ubuntu CI Engine
3
 
# Copyright 2013, 2014 Canonical Ltd.
 
3
# Copyright 2014 Canonical Ltd.
4
4
 
5
5
# This program is free software: you can redistribute it and/or modify it
6
6
# under the terms of the GNU Affero General Public License version 3, as
16
16
 
17
17
import copy
18
18
import datetime
19
 
import json
20
19
import os
21
20
import subprocess
22
21
import shutil
116
115
    try:
117
116
        dist_list = distros.split()
118
117
    except:
119
 
        juju_info('''Can't deterimine distros from [{}]'''.format(distros),
 
118
        juju_info('''Can't determine distros from [{}]'''.format(distros),
120
119
                  'ERROR')
121
120
        return 1
122
121
 
123
122
    try:
124
123
        architecture_list = architectures.split()
125
124
    except:
126
 
        juju_info('''Can't deterimine architectures from [{}]'''.format(
 
125
        juju_info('''Can't determine architectures from [{}]'''.format(
127
126
            architectures), 'ERROR')
128
127
        return 1
129
128