Re: svn commit: r1856835 - /incubator/public/trunk/clutch2.py

2019-04-02 Thread sebb
Note that ?filename only works with action=download; that will start
an immediate download.

However that does not allow users to change the mirror except by
reloading the URL.

On Tue, 2 Apr 2019 at 18:55, Dave Fisher  wrote:
>
> Hi Sebb,
>
> I’ve another place to fix - clutch2status.py - doing so now - thanks!
>
> Regards,
> Dave
>
> > On Apr 2, 2019, at 10:18 AM, s...@apache.org wrote:
> >
> > Author: sebb
> > Date: Tue Apr  2 17:18:41 2019
> > New Revision: 1856835
> >
> > URL: http://svn.apache.org/viewvc?rev=1856835=rev
> > Log:
> > Fix download URL so it resolves to download directory (not top level)
> >
> > Modified:
> >incubator/public/trunk/clutch2.py
> >
> > Modified: incubator/public/trunk/clutch2.py
> > URL: 
> > http://svn.apache.org/viewvc/incubator/public/trunk/clutch2.py?rev=1856835=1856834=1856835=diff
> > ==
> > --- incubator/public/trunk/clutch2.py (original)
> > +++ incubator/public/trunk/clutch2.py Tue Apr  2 17:18:41 2019
> > @@ -1124,7 +1124,7 @@ for k in sorted(projectNames, key=str.lo
> > # See if they have a distribution area yet.
> > for nameDist in projects[k]['resourceNames']:
> > urlDist = 
> > "https://www.apache.org/dist/incubator/{0}/".format(nameDist)
> > -urlMirror = 
> > "https://www.apache.org/dyn/closer.lua?filename=incubator/{0}/".format(nameDist)
> > +urlMirror = 
> > "https://www.apache.org/dyn/closer.lua/incubator/{0}/".format(nameDist)
> > urlDistSVN = 
> > "https://dist.apache.org/repos/dist/release/incubator/{0}".format(nameDist)
> > if nameDist in distareas:
> > projects[k]['urlDist'] = urlMirror
> >
> >
> >
> > -
> > To unsubscribe, e-mail: cvs-unsubscr...@incubator.apache.org
> > For additional commands, e-mail: cvs-h...@incubator.apache.org
> >
>
>
> -
> To unsubscribe, e-mail: general-unsubscr...@incubator.apache.org
> For additional commands, e-mail: general-h...@incubator.apache.org
>

-
To unsubscribe, e-mail: general-unsubscr...@incubator.apache.org
For additional commands, e-mail: general-h...@incubator.apache.org



Re: svn commit: r1856835 - /incubator/public/trunk/clutch2.py

2019-04-02 Thread Dave Fisher
Hi Sebb,

I’ve another place to fix - clutch2status.py - doing so now - thanks!

Regards,
Dave

> On Apr 2, 2019, at 10:18 AM, s...@apache.org wrote:
> 
> Author: sebb
> Date: Tue Apr  2 17:18:41 2019
> New Revision: 1856835
> 
> URL: http://svn.apache.org/viewvc?rev=1856835=rev
> Log:
> Fix download URL so it resolves to download directory (not top level)
> 
> Modified:
>incubator/public/trunk/clutch2.py
> 
> Modified: incubator/public/trunk/clutch2.py
> URL: 
> http://svn.apache.org/viewvc/incubator/public/trunk/clutch2.py?rev=1856835=1856834=1856835=diff
> ==
> --- incubator/public/trunk/clutch2.py (original)
> +++ incubator/public/trunk/clutch2.py Tue Apr  2 17:18:41 2019
> @@ -1124,7 +1124,7 @@ for k in sorted(projectNames, key=str.lo
> # See if they have a distribution area yet.
> for nameDist in projects[k]['resourceNames']:
> urlDist = 
> "https://www.apache.org/dist/incubator/{0}/".format(nameDist)
> -urlMirror = 
> "https://www.apache.org/dyn/closer.lua?filename=incubator/{0}/".format(nameDist)
> +urlMirror = 
> "https://www.apache.org/dyn/closer.lua/incubator/{0}/".format(nameDist)
> urlDistSVN = 
> "https://dist.apache.org/repos/dist/release/incubator/{0}".format(nameDist)
> if nameDist in distareas:
> projects[k]['urlDist'] = urlMirror
> 
> 
> 
> -
> To unsubscribe, e-mail: cvs-unsubscr...@incubator.apache.org
> For additional commands, e-mail: cvs-h...@incubator.apache.org
> 


-
To unsubscribe, e-mail: general-unsubscr...@incubator.apache.org
For additional commands, e-mail: general-h...@incubator.apache.org