[Pkg-mozext-commits] [adblock-plus] 392/464: Hack: Replace "Chrome" by "Opera" in the locales when creating Opera builds
David Prévot
taffit at moszumanska.debian.org
Tue Jul 22 20:44:36 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository adblock-plus.
commit 85ece079d06fc107b99580fbb9dd22f2e90aafd4
Author: Wladimir Palant <trev at adblockplus.org>
Date: Wed Jul 10 11:19:36 2013 +0200
Hack: Replace "Chrome" by "Opera" in the locales when creating Opera builds
---
packagerChrome.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/packagerChrome.py b/packagerChrome.py
index f6c93a4..b901b95 100644
--- a/packagerChrome.py
+++ b/packagerChrome.py
@@ -275,6 +275,11 @@ def importGeckoLocales(params, files):
files[operaFile] = files[chromeFile]
del files[chromeFile]
+ # Hack: Replace "Chrome" by "Opera" in the locales
+ for path, data in files.iteritems():
+ if path.startswith("_locales/") and path.endswith("/messages.json"):
+ files[path] = re.sub(r"\bChrome\b", "Opera", data)
+
def signBinary(zipdata, keyFile):
import M2Crypto
if not os.path.exists(keyFile):
@@ -342,7 +347,7 @@ def createBuild(baseDir, type='chrome', outFile=None, buildNum=None, releaseBuil
def createDevEnv(baseDir, type):
fileBuffer = StringIO()
- createBuild(baseDir, outFile=fileBuffer, devenv=True, releaseBuild=True)
+ createBuild(baseDir, type=type, outFile=fileBuffer, devenv=True, releaseBuild=True)
from zipfile import ZipFile
zip = ZipFile(StringIO(fileBuffer.getvalue()), 'r')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git
More information about the Pkg-mozext-commits
mailing list