On 2016/04/24 22:20, Edd Barrett wrote:
> On Sun, Apr 24, 2016 at 05:33:52PM +0100, Edd Barrett wrote:
> > Here's a thread discussing the change:
> > https://bitbucket.org/pypa/pypi/issues/438/backwards-compatible-un-hashed-package

"We generally do not allow people to delete a file and re-upload the
same version again. However the old lay out generally means that we
can't do that" - but it is a GOOD thing that they can't do that!

> This thread has just concluded with a fix from the PyPI devs. They
> implemented a "legacy" URL which we could use. It uses a HTTP 301 to
> redirect to a URL under the new scheme.
> 
> The diff would look like this. It works for my newly created texscythe
> distfile and for the few ports I tried a 'make fetch' in.

That seems reasonable, if it works for a decent selection of
files then I'm ok with it.

Presumably portroach needs a change to be able to use the correct
handler after this change?

> 
> Index: network.conf.template
> ===================================================================
> RCS file: 
> /home/edd/cvsync/ports/infrastructure/templates/network.conf.template,v
> retrieving revision 1.203
> diff -u -p -r1.203 network.conf.template
> --- network.conf.template     10 Jan 2016 22:31:40 -0000      1.203
> +++ network.conf.template     24 Apr 2016 20:55:11 -0000
> @@ -207,7 +207,7 @@ MASTER_SITE_APACHE+= \
>       http://www.apache.org/dist/
>  
>  MASTER_SITE_PYPI +=  \
> -     https://pypi.python.org/packages/source/
> +     https://pypi.io/packages/source/
>  
>  MASTER_SITE_RUBYGEMS += \
>       https://rubygems.org/downloads/
> 
> 
> -- 
> Best Regards
> Edd Barrett
> 
> http://www.theunixzoo.co.uk
> 

Reply via email to