Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

bug 745975: include list of locales in properties of release repack b…

…uilders. r=rail
  • Loading branch information...
commit 13bc5b715591a65eccd5dabb9f170494b5a26d03 1 parent aa6bb0f
@bhearsum bhearsum authored
View
9 scripts/l10n/create-release-repacks.py
@@ -175,6 +175,7 @@ def validate(options, args):
parser.add_option("--stage-username", dest="stage_username")
parser.add_option(
"--compare-locales-repo-path", dest="compare_locales_repo_path")
+ parser.add_option("--properties-dir", dest="properties_dir")
options, args = parser.parse_args()
if options.generatePartials:
@@ -208,6 +209,14 @@ def validate(options, args):
else:
locales = options.locales
+ if options.properties_dir:
+ # Output a list of the locales into the properties directory. This will
+ # allow consumers of the Buildbot JSON to know which locales were built
+ # in a particular repack chunk.
+ localeProps = path.normpath(path.join(options.properties_dir, 'locales'))
+ with open(localeProps, 'w+') as f:
+ f.write('locales:%s' % ','.join(locales))
+
try:
l10nRepoDir = path.split(releaseConfig["l10nRepoClonePath"])[-1]
except KeyError:
View
7 scripts/l10n/release_repacks.sh
@@ -13,6 +13,7 @@ if [ ! -x $PYTHON ]; then
fi
JSONTOOL="$PYTHON $SCRIPTS_DIR/buildfarm/utils/jsontool.py"
workdir=`pwd`
+outputPropertiesDir=$SCRIPTS_DIR/../properties
platform=$1
branchConfig=$2
@@ -28,6 +29,10 @@ releaseConfig=$($JSONTOOL -k properties.release_config $PROPERTIES_FILE)
releaseTag=$($JSONTOOL -k properties.script_repo_revision $PROPERTIES_FILE)
product=$($JSONTOOL -k properties.product $PROPERTIES_FILE)
+if [ ! -e $outputPropertiesDir ]; then
+ mkdir $outputPropertiesDir
+fi
+
if [ -z "$BUILDBOT_CONFIGS" ]; then
export BUILDBOT_CONFIGS="http://hg.mozilla.org/build/buildbot-configs"
fi
@@ -65,4 +70,4 @@ fi
$PYTHON $MY_DIR/create-release-repacks.py -c $branchConfig -r $releaseConfig \
-b $BUILDBOT_CONFIGS -t $releaseTag -p $platform \
- $SOURCE_REPO_KEY $LOCALE_OPT $@
+ --properties-dir $outputPropertiesDir $SOURCE_REPO_KEY $LOCALE_OPT $@
Please sign in to comment.
Something went wrong with that request. Please try again.