[pypy-commit] pypy default: download the nightly of the current branch

antocuni noreply at buildbot.pypy.org
Mon Apr 8 17:07:12 CEST 2013


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: 
Changeset: r63139:1f99f6cb2850
Date: 2013-04-08 16:03 +0100
http://bitbucket.org/pypy/pypy/changeset/1f99f6cb2850/

Log:	download the nightly of the current branch

diff --git a/pypy/goal/getnightly.py b/pypy/goal/getnightly.py
--- a/pypy/goal/getnightly.py
+++ b/pypy/goal/getnightly.py
@@ -13,8 +13,13 @@
 if sys.maxint == 2**63 - 1:
     arch += '64'
 
+hg = py.path.local.sysfind('hg')
+branch = hg.sysexec('branch').strip()
+if branch == 'default':
+    branch = 'trunk'
+
 filename = 'pypy-c-jit-latest-%s.tar.bz2' % arch
-url = 'http://buildbot.pypy.org/nightly/trunk/%s' % filename
+url = 'http://buildbot.pypy.org/nightly/%s/%s' % (branch, filename)
 tmp = py.path.local.mkdtemp()
 mydir = tmp.chdir()
 print 'Downloading pypy to', tmp


More information about the pypy-commit mailing list