[pypy-commit] buildbot default: Win32 compat.
arigo
noreply at buildbot.pypy.org
Mon Sep 12 11:27:45 CEST 2011
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r593:ebdc074a0d49
Date: 2011-09-12 11:27 +0200
http://bitbucket.org/pypy/buildbot/changeset/ebdc074a0d49/
Log: Win32 compat.
diff --git a/bot2/pypybuildbot/pypylist.py b/bot2/pypybuildbot/pypylist.py
--- a/bot2/pypybuildbot/pypylist.py
+++ b/bot2/pypybuildbot/pypylist.py
@@ -58,9 +58,12 @@
self.platform = None
def parse_filename(self):
- if not self.filename.endswith('.tar.bz2'):
+ for ext in ['.tar.bz2', '.zip']:
+ if self.filename.endswith(ext):
+ break
+ else:
raise ValueError
- name = self.filename.replace('.tar.bz2', '')
+ name = self.filename.replace(ext, '')
dashes = name.count('-')
if dashes == 4:
# svn based
More information about the pypy-commit
mailing list