~canonical-launchpad-branches/launchpad-buildd/trunk

« back to all changes in this revision

Viewing changes to buildd-genconfig

  • Committer: Colin Watson
  • Date: 2017-05-11 08:34:07 UTC
  • mfrom: (215.1.1 extended-snap-status)
  • Revision ID: cjwatson@canonical.com-20170511083407-2jvw6phrd50strdk
[r=wgrant] Record the branch revision used to build a snap and return it along with other XML-RPC status information (LP: #1679157).

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
                  metavar="FILE",
38
38
                  default="/usr/share/launchpad-buildd/template-buildd-slave.conf")
39
39
 
40
 
parser.add_option("--snap-proxy-port", dest="SNAPPROXYPORT",
41
 
                  help="the port the local snap proxy binds to",
42
 
                  metavar="PORT",
43
 
                  default="8222")
44
 
 
45
40
(options, args) = parser.parse_args()
46
41
 
47
42
template = open(options.TEMPLATE, "r").read()
51
46
    "@BINDHOST@": options.BINDHOST,
52
47
    "@ARCHTAG@": options.ARCHTAG,
53
48
    "@BINDPORT@": options.BINDPORT,
54
 
    "@SNAPPROXYPORT@": options.SNAPPROXYPORT,
55
49
    }
56
50
 
57
51
for replacement_key in replacements:
59
53
                                replacements[replacement_key])
60
54
 
61
55
print(template.strip())
 
56