Closed Bug 683469 Opened 13 years ago Closed 13 years ago

Download script selects wrong locale for download

Categories

(Mozilla QA Graveyard :: Mozmill Automation, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: whimboo, Assigned: whimboo)

References

Details

Attachments

(1 file, 1 obsolete file)

Not sure what's wrong with the script but somehow we are downloading the wrong locale:

$ ./download.py --type=daily --locale=nl --platform=mac --directory=builds
Downloading build: http://stage.mozilla.org/pub/mozilla.org/firefox//nightly/latest-mozilla-central-l10n//firefox-9.0a1.fy-NL.mac.dmg
Attached patch Patch v1 (obsolete) — Splinter Review
This patch updates the regular expressions for the binary filename. We really have to check that the given locale is enclosed in dots. Otherwise we fetch the wrong build, e.g. nl -> fy-NL.

I have also update the helper strings in the download script to make it clear that when no date is given we download the latest build of the specified branch and that the version doesn't apply for daily builds.
Attachment #557318 - Flags: review?(dburns)
Comment on attachment 557318 [details] [diff] [review]
Patch v1

it might be better to dynamically generate the regex from component parts rather than having to change each regex for only a few things that vary
Attached patch Patch v1.1Splinter Review
Incorporates the proposal and moves out the regex for the base filename to it's own variable.
Attachment #557318 - Attachment is obsolete: true
Attachment #557318 - Flags: review?(dburns)
Attachment #557451 - Flags: review?(dave.hunt)
Attachment #557451 - Flags: review?(dave.hunt) → review+
Landed as:
http://hg.mozilla.org/qa/mozmill-automation/rev/b2c3bc6d7ad8
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: