~andrewjbeach/juju-ci-tools/make-local-patcher

« back to all changes in this revision

Viewing changes to make-buildvars

  • Committer: Aaron Bentley
  • Date: 2014-10-29 14:06:08 UTC
  • mto: This revision was merged to the branch mainline in revision 713.
  • Revision ID: aaron.bentley@canonical.com-20141029140608-mpvd14bnfcoul211
Remove revno from json, fix lint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
from textwrap import dedent
10
10
import urllib2
11
11
 
 
12
 
12
13
def parse_version(string):
13
14
    return re.search('^const version = "(.*)"', string, re.M).group(1)
14
15
 
33
34
        return None, None
34
35
    if len(found.split('\n')) > 1:
35
36
        raise Exception(
36
 
            "More than one commit matched the branch or tag:\n{}".format(found))
 
37
            "More than one commit matched the branch or tag:\n{}".format(
 
38
                found))
37
39
    commit, ref = found.split('\t')
38
40
    return commit, ref
39
41
 
93
95
        json.dump({
94
96
            'branch': branch,
95
97
            'revision_id': revision_id,
96
 
            'revno': revno,
97
98
            'version': version,
98
99
            'revision_build': args.revision_build,
99
100
            }, f, indent=2)