~ubuntu-branches/ubuntu/wily/simplestreams/wily-proposed

« back to all changes in this revision

Viewing changes to tools/toolutil.py

  • Committer: Package Import Robot
  • Author(s): Scott Moser
  • Date: 2015-09-24 21:53:46 UTC
  • mfrom: (1.1.16)
  • Revision ID: package-import@ubuntu.com-20150924215346-ijw9jcrq49fchix8
Tags: 0.1.0~bzr400-0ubuntu1
* New upstream snapshot.
  - sstream-mirror, sstream-query, sstream-sync: add --no-verify
    flag (LP: #1249018)
  - pep8/flake8 cleanups
  - several closing of filehandle fixes (LP: #1461181)
  - GlanceMirror fix stack trace if no matching entries (LP: #1353724)
  - tools: upstream development tools fixes (not shipped in ubuntu)
  - GlanceMirror: change known Ubuntu arches into appropriate glance
    arch values (LP: #1483159)
  - Ensure all users of 'sync' get checksumming of content by default.
    insert_item now provides a content source that does checksumming
    during reads and raises exception on error (LP: #1487004)
* debian/README.source: add file, doc how to take upstream snapshot
* debian/rules: export SS_REQUIRE_DISTRO_INFO so that test
  runs without a dependency on distro-info

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
        if arch not in ('i386', 'amd64'):
68
68
            return False
69
69
 
 
70
    if repl == "-root.tar.xz" or repl == "-lxd.tar.xz":
 
71
        # -root.tar.xz and -lxd.tar.xz become available after 20150714.3
 
72
        if serial < "20150714.4":
 
73
            return False
 
74
 
70
75
    # if some data in /query is not truely available, fill up this array
71
76
    # to skip it. ex: export BROKEN="precise/20121212.1 quantal/20130128.1"
72
77
    broken = os.environ.get("BROKEN", "").split(" ")
84
89
        rels = RELEASES
85
90
 
86
91
    suffixes = (".tar.gz", "-root.tar.gz", "-disk1.img", "-uefi1.img",
87
 
                ".manifest", ".ova")
 
92
                ".manifest", ".ova", "-root.tar.xz", "-lxd.tar.xz")
88
93
    streams = [f[0:-len(".latest.txt")]
89
94
               for f in os.listdir(path) if f.endswith("latest.txt")]
90
95