~debfx/+junk/kubuntu-automation

« back to all changes in this revision

Viewing changes to kubuntu-ppa-build-status

  • Committer: Felix Geyer
  • Date: 2012-06-13 07:57:06 UTC
  • Revision ID: debfx-pkg@fobos.de-20120613075706-g5rhuo9m25mfomdk
Cache build logs only when the build suceeded.

Otherwise the build can be retried and we wouldn't notice it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    url = url.replace("https://launchpad.net/", "https://api.launchpad.net/1.0/")
42
42
    content = lp._browser.get(url)
43
43
 
44
 
    f = gzip.GzipFile(cacheFilename, "w")
45
 
    f.write(content)
46
 
    f.close()
 
44
    if build.buildstate == "Successfully built":
 
45
        f = gzip.GzipFile(cacheFilename, "w")
 
46
        f.write(content)
 
47
        f.close()
47
48
 
48
49
    return content
49
50