Closed Bug 782079 Opened 13 years ago Closed 13 years ago

Setup files in "latest" folders to always have the same name rather than using version numbers

Categories

(Release Engineering :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: Terry.F1Com, Unassigned)

Details

This is where the latest release version of Firefox can always be found. http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest/ That link retrieves a directory listing. If one follows the trail to the binary itself, the link becomes: http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest/mac/en-US/Firefox%2014.0.1.dmg The problem isn't the lack of the word 'latest' in the url, but the presence of a version number in the url. The problem is that a version number is in the url. To reliably retrieve the latest version, users need one url that will retrieve 14.0.1 today, and 14.0.2 tomorrow. This could be done: wget "http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest/mac/en-US/$( curl -s 'http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest/mac/en-US/'%7C grep 'dmg<' | sed 's/.*href="//;s/".*//' )" But screen scraping a page to get libre software, feels wrong. It feels like circumventing access control of some sort. It looks ugly, and its prone to breakage. I know you want as many people to benefit from Firefox as possible. It would be nice to have a url that can always be used as an API between scripts and Mozilla -- One url, that users can depend on working every time, and always being the latest version without any human having to click, or reverse engineer your directory tree. Have the name simply be Firefox Setup.dmg (exe of course for Windows) in the "latest" folder. Thanks for your consideration.
OS: Windows 7 → All
Hardware: x86 → All
Thanks Chris! HTTP is not a requirement. Your suggestion does appear to retrieve the latest version. How silly of me not to have known about wildcard matching in wget. This is what I'm running nightly, on an internal server, so that internally, we can always have one unchanging, ever current, url to install from. wget ftp://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest/mac/en-US/*.dmg -N -O Firefox.dmg
Actually, I spoke too soon. Because -O always creates a new file, and -N only suppresses re-downloading if the timestamps match, it conflicts with -N, and this won't work. Also, while I don't care about http. It might be prudent to use httpS, ftps, or sftp to retrieve something as essential as Firefox.
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.