On Fri, Sep 09, 2011 at 03:05:42PM +0100, Klaus T. Aehlig wrote:
> > > * due to autogeneration, you're quite likely to get a http-redirect,
> >  Does fetch support redirects?
> 
> Yes. But for good reasons, Mk/bsd.ports.mk contains the line
> 
> FETCH_ARGS?=    -AFpr
> 
> Note the -A. Of course, it's no problem to make an exception for github, but
> at least, one should be aware of this.

The redirect is often avoidable if you can determine the final URL of
the distfile. Github only uses a single hostname for tarball downloads,
so there is no issue with maintaining a list of mirrors.

Until recently, github required two requests to get a tarball: one to
initiate the tarball creation, the other to download it. I was able to
work around this in one of my ports, but the hack is no longer needed.

-- 
Shaun Amott // PGP: 0x6B387A9A
"A foolish consistency is the hobgoblin
of little minds." - Ralph Waldo Emerson

Attachment: pgpRTUDcBWUnD.pgp
Description: PGP signature

Reply via email to