~smoser/simplestreams/add-aliases

« back to all changes in this revision

Viewing changes to tools/make-test-data

  • Committer: Scott Moser
  • Date: 2016-03-02 21:38:59 UTC
  • Revision ID: smoser@ubuntu.com-20160302213859-xzpuj5hcp1gfmvqv
add 'aliases' data as a comma separated list to products.

Bug: https://bugs.launchpad.net/cpc-core/+bug/1550421
This branch introduces a new "aliases" field as a comma separated list
of alias in a string json entry.

Its content is as follow:
 - release codename
 - the first letter of the release codename
 - the version number
 - the aliases "lts" and "default" if the current active LTS
 - "devel" if the current development release

Show diffs side-by-side

added added

removed removed

Lines of Context:
406
406
    for maybe in ('supported', 'support_eol'):
407
407
        if maybe in reldata:
408
408
            ret[maybe] = reldata[maybe]
 
409
    if 'aliases' in reldata:
 
410
        ret['aliases'] = ','.join(sorted(reldata['aliases']))
409
411
    return ret
410
412
 
411
413