Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

Commit

Permalink
merged from default
Browse files Browse the repository at this point in the history
changeset:   3518:c0fe7edf6ab7
tag:         tip
parent:      3513:64e7028ae9f6
user:        Chris Cooper <ccooper@deadsquid.com>
date:        Wed May 08 06:44:03 2013 -0700
summary:     Bug 852553 - Clone l10n repos to a standard 'l10n' dir regardless of branch - r=armenzg

--HG--
branch : production-0.8
  • Loading branch information
Chris AtLee committed May 8, 2013
2 parents 8e803af + dafc329 commit b101479
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions process/factory.py
Expand Up @@ -3213,7 +3213,7 @@ def __init__(self, project, appName, l10nRepoPath,
if objdir != '':
# L10NBASEDIR is relative to MOZ_OBJDIR
self.env.update({'MOZ_OBJDIR': objdir,
'L10NBASEDIR': '../../%s' % self.l10nRepoPath})
'L10NBASEDIR': '../../l10n'})

if platform == 'macosx64':
# use "mac" instead of "mac64" for macosx64
Expand Down Expand Up @@ -3246,9 +3246,9 @@ def __init__(self, project, appName, l10nRepoPath,
MercurialBuildFactory.addMockSteps(self)

self.addStep(ShellCommand(
name='mkdir_l10nrepopath',
command=['sh', '-c', 'mkdir -p %s' % self.l10nRepoPath],
descriptionDone='mkdir ' + self.l10nRepoPath,
name='mkdir_l10n',
command=['sh', '-c', 'mkdir -p l10n'],
descriptionDone='mkdir l10n',
workdir=self.baseWorkDir,
flunkOnFailure=False
))
Expand Down Expand Up @@ -3406,7 +3406,7 @@ def getSources(self):
rev=WithProperties("%(l10n_revision)s"),
repo_url=WithProperties("http://" + self.hgHost + "/" +
self.l10nRepoPath + "/%(locale)s"),
workdir='%s/%s' % (self.baseWorkDir, self.l10nRepoPath),
workdir='%s/l10n' % self.baseWorkDir,
locks=[hg_l10n_lock.access('counting')],
use_properties=False,
mirrors=mirrors,
Expand Down Expand Up @@ -3527,7 +3527,7 @@ def compareLocales(self):
'../../../compare-locales/scripts/compare-locales'] +
mergeLocaleOptions +
["l10n.ini",
"../../../%s" % self.l10nRepoPath,
"../../../l10n",
WithProperties('%(locale)s')],
description='comparing locale',
env={'PYTHONPATH': ['../../../compare-locales/lib']},
Expand Down Expand Up @@ -3751,15 +3751,14 @@ def updateSources(self):
command=['hg', 'up', '-C', '-r', self.l10nTag],
description='update workdir',
workdir=WithProperties(
'build/' + self.l10nRepoPath + '/%(locale)s'),
'build/l10n/%(locale)s'),
haltOnFailure=True
))
self.addStep(SetProperty(
command=['hg', 'ident', '-i'],
haltOnFailure=True,
property='l10n_revision',
workdir=WithProperties('build/' + self.l10nRepoPath +
'/%(locale)s')
workdir=WithProperties('build/l10n/%(locale)s')
))

def downloadBuilds(self):
Expand Down

0 comments on commit b101479

Please sign in to comment.