~laney/ubuntu-archive-tools/retry-autopkgtest-regressions-bileto-v2

« back to all changes in this revision

Viewing changes to publish-image-set

  • Committer: Colin Watson
  • Date: 2012-12-13 14:50:11 UTC
  • Revision ID: cjwatson@canonical.com-20121213145011-8xvn3h432hz4197x
make all scripts pass current stricter pep8(1) in raring

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
    '((?:|u|lu|ku|edu|xu|myth)buntu(?: studio)?) '
53
53
    '(alternate|desktop|dvd|server|mobile|core|active|wubi)(?: preinstalled)? '
54
54
    '(i386|amd64$|amd64\+mac|armel$|armel\+dove|armel\+omap$|armel\+omap4|'
55
 
     'armel\+ac100|armel\+mx5|armhf$|armhf\+omap$|armhf\+omap4|armhf\+ac100|'
56
 
     'armhf\+mx5|powerpc)', re.I)
 
55
    'armel\+ac100|armel\+mx5|armhf$|armhf\+omap$|armhf\+omap4|armhf\+ac100|'
 
56
    'armhf\+mx5|powerpc)', re.I)
57
57
 
58
58
# map an image type from the ISO tracker to a source directory for
59
59
# publish-release
71
71
    'preinstalled-mobile': 'daily-preinstalled',
72
72
    'preinstalled-active': 'daily-preinstalled',
73
73
    'preinstalled-server': 'ubuntu-server/daily-preinstalled',
74
 
    }
 
74
}
75
75
 
76
76
 
77
77
def parse_iso_tracker(opts):
193
193
    else:
194
194
        official = 'named'
195
195
        if (project in ('ubuntu',) and
196
 
            type in ('desktop', 'alternate', 'netbook', 'server', 'wubi') and
197
 
            primary_arches):
 
196
                type in ('desktop', 'alternate', 'netbook', 'server',
 
197
                         'wubi') and
 
198
                primary_arches):
198
199
            official = 'yes'
199
200
    if opts.prepublish:
200
201
        if official == 'named':
278
279
        for type, buildstamps in builds.items():
279
280
            for buildstamp, arches in buildstamps.items():
280
281
                do_publish_release(opts, project, type, buildstamp, arches,
281
 
                        info['milestone_code'], info['stable'])
 
282
                                   info['milestone_code'], info['stable'])
282
283
                source_milestone = info['milestone_code']
283
284
        print()
284
285
 
285
286
    if source_milestone:
286
287
        do_publish_release(opts, 'ubuntu', 'src', 'current', set(),
287
 
                source_milestone, info['stable'])
 
288
                           source_milestone, info['stable'])
288
289
 
289
290
    if not opts.prepublish:
290
291
        print('\n## fix name in headers:')
294
295
 
295
296
    print('\n## check changes against www.prev:')
296
297
    print('diff -u <(cd ../www.prev/full && find | sort) '
297
 
                  '<(cd full && find | sort) | less')
 
298
          '<(cd full && find | sort) | less')
298
299
 
299
300
 
300
301
if __name__ == '__main__':