You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@incubator.apache.org by se...@apache.org on 2019/04/02 17:18:41 UTC

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

Author: sebb
Date: Tue Apr  2 17:18:41 2019
New Revision: 1856835

URL: http://svn.apache.org/viewvc?rev=1856835&view=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&r1=1856834&r2=1856835&view=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-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


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

Posted by sebb <se...@gmail.com>.
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 <da...@comcast.net> 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, sebb@apache.org wrote:
> >
> > Author: sebb
> > Date: Tue Apr  2 17:18:41 2019
> > New Revision: 1856835
> >
> > URL: http://svn.apache.org/viewvc?rev=1856835&view=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&r1=1856834&r2=1856835&view=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-unsubscribe@incubator.apache.org
> > For additional commands, e-mail: cvs-help@incubator.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
> For additional commands, e-mail: general-help@incubator.apache.org
>

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


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

Posted by Dave Fisher <da...@comcast.net>.
Hi Sebb,

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

Regards,
Dave

> On Apr 2, 2019, at 10:18 AM, sebb@apache.org wrote:
> 
> Author: sebb
> Date: Tue Apr  2 17:18:41 2019
> New Revision: 1856835
> 
> URL: http://svn.apache.org/viewvc?rev=1856835&view=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&r1=1856834&r2=1856835&view=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-unsubscribe@incubator.apache.org
> For additional commands, e-mail: cvs-help@incubator.apache.org
> 


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


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

Posted by Dave Fisher <da...@comcast.net>.
Hi Sebb,

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

Regards,
Dave

> On Apr 2, 2019, at 10:18 AM, sebb@apache.org wrote:
> 
> Author: sebb
> Date: Tue Apr  2 17:18:41 2019
> New Revision: 1856835
> 
> URL: http://svn.apache.org/viewvc?rev=1856835&view=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&r1=1856834&r2=1856835&view=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-unsubscribe@incubator.apache.org
> For additional commands, e-mail: cvs-help@incubator.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org