Author: Antonio Cuni <[email protected]>
Branch:
Changeset: r725:01131dbed112
Date: 2012-11-13 17:39 +0100
http://bitbucket.org/pypy/buildbot/changeset/01131dbed112/
Log: correctly sort linux-armel files
diff --git a/bot2/pypybuildbot/pypylist.py b/bot2/pypybuildbot/pypylist.py
--- a/bot2/pypybuildbot/pypylist.py
+++ b/bot2/pypybuildbot/pypylist.py
@@ -29,6 +29,7 @@
'linux64': 50,
'osx': 30,
'win32': 10,
+ 'linux_armel': 5,
}
PLATFORMS = {
@@ -64,6 +65,8 @@
else:
raise ValueError
name = self.filename.replace(ext, '')
+ # remove the dash from linux-armel, else the split does not work
+ name = name.replace('-armel', '_armel')
dashes = name.count('-')
if dashes == 4:
# svn based
diff --git a/bot2/pypybuildbot/test/test_pypylist.py
b/bot2/pypybuildbot/test/test_pypylist.py
--- a/bot2/pypybuildbot/test/test_pypylist.py
+++ b/bot2/pypybuildbot/test/test_pypylist.py
@@ -44,6 +44,7 @@
'pypy-c-jit-10000-win32.tar.bz2',
'pypy-c-stackless-10000-linux.tar.bz2',
'pypy-c-jit-1000-e5b73981fc8d-linux.tar.bz2', # this is mercurial
based
+ 'pypy-c-jit-10000-linux-armel.tar.bz2',
])
files.sort(key=PyPyTarball.key, reverse=True)
@@ -54,6 +55,7 @@
'pypy-c-jit-10000-linux.tar.bz2',
'pypy-c-jit-10000-linux64.tar.bz2',
'pypy-c-jit-10000-win32.tar.bz2',
+ 'pypy-c-jit-10000-linux-armel.tar.bz2',
'pypy-c-nojit-10000-linux.tar.bz2',
'pypy-c-stackless-10000-linux.tar.bz2',
]
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit