summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Aillon <caillon@redhat.com>2011-03-15 13:48:33 -0700
committerChristopher Aillon <caillon@redhat.com>2011-03-15 13:48:33 -0700
commitd4f1c75f65129d4ffc099d9eac00aee4a44690c9 (patch)
treed54a5eb0b86f651b0adb45c2d4f44039fc446010
parente911897962f7b1616570e9f2c326d8cce8af808b (diff)
downloadgecko-maint-d4f1c75f65129d4ffc099d9eac00aee4a44690c9.tar.gz
gecko-maint-d4f1c75f65129d4ffc099d9eac00aee4a44690c9.tar.xz
gecko-maint-d4f1c75f65129d4ffc099d9eac00aee4a44690c9.zip
Use the correct URL format for seamonkey, too.
The seamonkey langpack directory structure is laid out differently for some reason and also have a different naming structure...
-rwxr-xr-xscripts/moz-grab-langpacks14
1 files changed, 12 insertions, 2 deletions
diff --git a/scripts/moz-grab-langpacks b/scripts/moz-grab-langpacks
index bf56a6f..65f83e8 100755
--- a/scripts/moz-grab-langpacks
+++ b/scripts/moz-grab-langpacks
@@ -54,7 +54,17 @@ def find_appversion():
appname = '-'.join(nvrlist)
return (appname, version)
+def guess_seamonkey_xpi_url(app, version, build_number):
+ if build_number > 0:
+ url = "ftp://ftp.mozilla.org/pub/mozilla.org/seamonkey/nightly/%s-candidates/build%d/langpack/" % (version, build_number)
+ else:
+ url = "ftp://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%s/langpack/" % version
+ return url
+
def guess_xpi_url(app, version, build_number):
+ if app == "seamonkey":
+ return guess_seamonkey_xpi_url(app, version, build_number)
+
if build_number > 0:
url = "ftp://ftp.mozilla.org/pub/mozilla.org/%s/nightly/%s-candidates/build%d/linux-i686/xpi/" % (app, version, build_number)
else:
@@ -111,8 +121,8 @@ def create_langpack_tarball(app, version, url, use_xz=True):
# Gotta catch em all!
print 'Downloading .xpi files...'
- acclist = '??.xpi,???.xpi,??-??.xpi'
- rejlist = 'en-US.xpi'
+ acclist = '??.xpi,???.xpi,??-??.xpi,*.langpack.xpi'
+ rejlist = 'en-US.xpi,*en-US.langpack.xpi'
wgetcmd = ['wget', '-r', '-nd', '-np', '--accept', acclist, '--reject', rejlist, url]
subprocess.call(wgetcmd)