~heber013/qakit/adding-juju-bootstrapping

« back to all changes in this revision

Viewing changes to tools/phone-decoder-ring

  • Committer: Jean-Baptiste Lallement
  • Date: 2016-02-01 10:33:21 UTC
  • Revision ID: jean-baptiste.lallement@ubuntu.com-20160201103321-o3bf07qwp7jjn1b1
tools/phone-decoder-ring: Added ubuntu-pd images

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
    'ubuntu/mako',
50
50
    'ubuntu/flo',
51
51
    'ubuntu/generic_x86',
 
52
    'ubuntu-pd/mako',
52
53
]
53
54
 
54
55
OTA = {
92
93
    """
93
94
    json_url = "%s%s/index.json" % (SYSTEM_IMAGE_URL, channel)
94
95
    logging.debug('Loading data from %s', json_url)
95
 
    response = urlopen(json_url)
96
 
    if response.getcode() != 200:
97
 
        logging.error('An error %d occured while fetching data',
98
 
                      response.getcode())
 
96
    try:
 
97
        response = urlopen(json_url)
 
98
    except:
 
99
        logging.error('Failed to fetch url')
99
100
        return None
100
101
 
101
102
    reader = codecs.getreader('utf-8')
123
124
        for device in DEVICES:
124
125
            fq_channel = os.path.join(channel, device)
125
126
            channel_info = get_channel_index(fq_channel)
 
127
            if not channel_info:
 
128
                continue
126
129
            for version in parse_channel_info(channel_info):
127
130
                record = {
128
131
                    'ubuntu': version['ubuntu'],