Commits

Antonio Cuni committed 01131db

correctly sort linux-armel files

Comments (0)

Files changed (2)

bot2/pypybuildbot/pypylist.py

         'linux64':   50,
         'osx':       30,
         'win32':     10,
+        'linux_armel': 5,
         }
 
     PLATFORMS = {
         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

bot2/pypybuildbot/test/test_pypylist.py

             '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)
         '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',
         ]