Author: David Schneider <[email protected]>
Branch:
Changeset: r862:212f98def1ce
Date: 2013-09-08 19:59 +0200
http://bitbucket.org/pypy/buildbot/changeset/212f98def1ce/
Log: use the final_file_name property to build the URL to download a
build
diff --git a/bot2/pypybuildbot/builds.py b/bot2/pypybuildbot/builds.py
--- a/bot2/pypybuildbot/builds.py
+++ b/bot2/pypybuildbot/builds.py
@@ -85,7 +85,7 @@
properties = self.build.getProperties()
branch = map_branch_name(properties['branch'])
- revision = properties['revision']
+ revision = properties['final_file_name']
mastersrc = os.path.expanduser(self.mastersrc)
if branch.startswith('/'):
@@ -95,7 +95,7 @@
basename =
WithProperties(self.basename).getRenderingFor(self.build)
basename = basename.replace(':', '-')
else:
- basename = self.basename.replace('%(revision)s', 'latest')
+ basename = self.basename.replace('%(final_file_name)s', 'latest')
assert '%' not in basename
self.mastersrc = os.path.join(mastersrc, basename)
@@ -454,7 +454,7 @@
command=['rm', '-rf', 'pypy-c'],
workdir='.'))
extension = get_extension(platform)
- name = build_name(platform, pypyjit, translationArgs,
placeholder='%(revision)s') + extension
+ name = build_name(platform, pypyjit, translationArgs,
placeholder='%(final_file_name)s') + extension
self.addStep(PyPyDownload(
basename=name,
mastersrc='~/nightly',
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit