~saviq/simplestreams/add-vhd-images

« back to all changes in this revision

Viewing changes to tools/ubuntu_versions.py

  • Committer: Robert C Jennings
  • Date: 2017-04-25 20:06:36 UTC
  • mfrom: (448.1.1 trunk)
  • Revision ID: robert.jennings@canonical.com-20170425200636-w32n0582mjiyl8gh
tools/ubuntu_versions.py: Exclude old versions by version not name

Exclusion from ubuntu versions (and streams) has been done by a
name comparison with 'hardy' will is incorrect for 'artful' and later.
This patch changes to use the version number to provide the same
comparison.

Show diffs side-by-side

added added

removed removed

Lines of Context:
170
170
    info = get_ubuntu_info()
171
171
    REL2VER = {}
172
172
    for r in info:
173
 
        if r['codename'] < "hardy":
 
173
        if r['_int_version'] < 804:
174
174
            continue
175
175
        REL2VER[r['codename']] = r.copy()
176
176