Bug 678612 - duplicate slave entries in some builders; r=bhearsum
authorRail Aliev <rail@mozilla.com>
Mon, 15 Aug 2011 17:26:53 +0300
changeset 1725 7c167b921bdd
parent 1722 221982fae285
child 1726 d01268fcbc9d
push id1227
push userraliiev@mozilla.com
push date2011-08-15 14:27 +0000
reviewersbhearsum
bugs678612
Bug 678612 - duplicate slave entries in some builders; r=bhearsum
process/release.py
--- a/process/release.py
+++ b/process/release.py
@@ -66,16 +66,18 @@ def generateReleaseBranchObjects(release
     branchConfigFile = getRealpath('localconfig.py')
     unix_slaves = []
     all_slaves = []
     for p in branchConfig['platforms']:
         platform_slaves = branchConfig['platforms'][p].get('slaves', [])
         all_slaves.extend(platform_slaves)
         if 'win' not in p:
             unix_slaves.extend(platform_slaves)
+    unix_slaves = [x for x in set(unix_slaves)]
+    all_slaves = [x for x in set(all_slaves)]
 
     signedPlatforms = releaseConfig.get('signedPlatforms', ('win32',))
 
     def builderPrefix(s, platform=None):
         if platform:
             return "release-%s-%s_%s" % (sourceRepoInfo['name'], platform, s)
         else:
             return "release-%s-%s" % (sourceRepoInfo['name'], s)