Re: [homebrew] prdownloads is bad?
- From:
- Adam Vandenberg
- Date:
- 2011-01-12 @ 01:20
On Tue, Jan 11, 2011 at 5:17 PM, sigzero <sigzero@gmail.com> wrote:
> robert -> brew audit tcl
> tcl:
> * Update this url (don't use prdownloads).
> I have successfully created a formula for Tcl but when I do an audit it
> seems that sourceforge is not a good place to get the file from? Problem is,
> I don't control that file. What to do?
> Robert
We prefer the URLs that the SourceForge pages spit out directly, which
change occasionally.
The "prdownloads" domain still redirects, but isn't used if you go
directly to a downloads page such as:
http://sourceforge.net/projects/tcl/files/Tcl/8.5.9/
If you click on a download, then copy "direct link" you get:
http://downloads.sourceforge.net/project/tcl/Tcl/8.5.9/tk8.5.9-src.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Ftcl%2Ffiles%2FTcl%2F8.5.9%2F&ts=1294795201&use_mirror=surfnet
We then hack off the geolocation to get a Homebrew preferred location of:
http://downloads.sourceforge.net/project/tcl/Tcl/8.5.9/tk8.5.9-src.tar.gz
Re: prdownloads is bad?
- From:
- Max Howell
- Date:
- 2011-01-12 @ 10:44
We should document this excellent aquired knowledge and link to that from
the audit response.
> We prefer the URLs that the SourceForge pages spit out directly, which
> change occasionally.
> The "prdownloads" domain still redirects, but isn't used if you go
> directly to a downloads page such as:
>
> http://sourceforge.net/projects/tcl/files/Tcl/8.5.9/
>
> If you click on a download, then copy "direct link" you get:
>
http://downloads.sourceforge.net/project/tcl/Tcl/8.5.9/tk8.5.9-src.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Ftcl%2Ffiles%2FTcl%2F8.5.9%2F&ts=1294795201&use_mirror=surfnet
>
> We then hack off the geolocation to get a Homebrew preferred location of:
> http://downloads.sourceforge.net/project/tcl/Tcl/8.5.9/tk8.5.9-src.tar.gz
>
>
Re: [homebrew] Re: prdownloads is bad?
- From:
- sigzero
- Date:
- 2011-01-12 @ 13:46
That would be good, I think think.
On Wed, Jan 12, 2011 at 5:44 AM, Max Howell <max@methylblue.com> wrote:
> We should document this excellent aquired knowledge and link to that from
> the audit response.
>
> We prefer the URLs that the SourceForge pages spit out directly, which
> change occasionally.
> The "prdownloads" domain still redirects, but isn't used if you go
> directly to a downloads page such as:
>
> http://sourceforge.net/projects/tcl/files/Tcl/8.5.9/
>
> If you click on a download, then copy "direct link" you get:
>
http://downloads.sourceforge.net/project/tcl/Tcl/8.5.9/tk8.5.9-src.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Ftcl%2Ffiles%2
>
FTcl%2F8.5.9%2F&ts=1294795201&use_mirror=surfnet<http://downloads.sourceforge.net/project/tcl/Tcl/8.5.9/tk8.5.9-src.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Ftcl%2Ffiles%2FTcl%2F8.5.9%2F&ts=1294795201&use_mirror=surfnet>
>
>
> We then hack off the geolocation to get a Homebrew preferred location of:
> http://downloads.sourceforge.net/project/tcl/Tcl/8.5.9/tk8.5.9-src.tar.gz
>
>
Re: [homebrew] prdownloads is bad?
- From:
- Mike McQuaid
- Date:
- 2011-01-12 @ 10:39
On 12 January 2011 01:20, Adam Vandenberg <flangy@gmail.com> wrote:
> We prefer the URLs that the SourceForge pages spit out directly, which
> change occasionally.
> The "prdownloads" domain still redirects, but isn't used if you go
> directly to a downloads page such as:
> http://sourceforge.net/projects/tcl/files/Tcl/8.5.9/
>
> If you click on a download, then copy "direct link" you get:
>
http://downloads.sourceforge.net/project/tcl/Tcl/8.5.9/tk8.5.9-src.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Ftcl%2Ffiles%2FTcl%2F8.5.9%2F&ts=1294795201&use_mirror=surfnet
>
> We then hack off the geolocation to get a Homebrew preferred location of:
> http://downloads.sourceforge.net/project/tcl/Tcl/8.5.9/tk8.5.9-src.tar.gz
We could maybe improve brew create to point to the final URL and
rewrite sourceforge URLs.
--
Mike McQuaid
http://mikemcquaid.com