Bug 527398, fix mac handling for forcing release l10n, r=bhearsum
authorNick Thomas <nthomas@mozilla.com>
Tue, 10 Nov 2009 22:26:56 +1300
changeset 412 06529a5c488d18ff99a06a3af238dbc214d80fc4
parent 411 8dbb9686972dd08c6338ba9f9b9b8908d61fc676
child 413 b74e43b2a0c3227de992596cc6b421983119e499
push id209
push usernthomas@mozilla.com
push dateTue, 10 Nov 2009 09:27:11 +0000
reviewersbhearsum
bugs527398
Bug 527398, fix mac handling for forcing release l10n, r=bhearsum
buildbot-helpers/force_release_l10n.py
--- a/buildbot-helpers/force_release_l10n.py
+++ b/buildbot-helpers/force_release_l10n.py
@@ -68,22 +68,22 @@ def getShippedLocales(shippedLocales):
     parsed = ParseLocalesFile(shippedLocales)
     # Now we have to reverse it, because we want it a different way
     properlyParsed = {}
     for p in ALL_PLATFORMS:
         properlyParsed[p] = []
     for locale,platforms in parsed.iteritems():
         if platforms:
             for p in platforms:
+                # map the bouncer/shipped-locales platforms to automation ones
+                if p == 'osx':
+                    p = 'macosx'
                 # skip platforms we don't know about
                 if p not in properlyParsed.keys():
                     continue
-                # map the bouncer/shipped-locales platforms to automation ones
-                if p == 'osx':
-                    p = 'macosx'
                 properlyParsed[p].append(locale)
         else:
             for p in properlyParsed.iterkeys():
                 properlyParsed[p].append(locale)
     return properlyParsed
 
 
 def filterPlatforms(shippedLocales, includedPlatforms):