Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] SOURCEFORGE_URL

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: David Kowis <dkowis AT shlrm.org>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] SOURCEFORGE_URL
  • Date: Sun, 17 Feb 2013 15:19:49 -0600

On 02/17/2013 03:14 PM, David Kowis wrote:
> tl;dr : Don't use SOURCEFORGE_URL any longer, sourcforge.net has their
> own mirror system; make sure your urls start with
> http://downloads.sourceforge.net/; Fix spells as you come across them.
>
>
> So our SOURCEFORGE_URL mirror system is very broke :(
>
> Basically, all references to SOURCEFORGE_URL need to be replaced with
> the project specific urls that project uses on sourceforge.net. They
> have their own geo-ip based load distributing, and mirroring is handled
> automatically now, unlike in the past.
>
> So there's no particularly good way to use SOURCEFORGE_URL, since most
> of the path is project specific, and may or may not match the spell name.
>
> Also, there's no particularly good way to go through and replace it for
> all spells. I have written a ruby script that takes advantage of
> capybara and selenium to attempt to scrape the download path from the
> project itself, it's not 100% accurate, but it can help automate some of
> the mess away.

Sorry, forgot to link my silly little utility thingy:
http://scm.shlrm.org/gitweb/?p=smglTools.git;a=tree;f=fix_sourceforge

>
> The results of that execution are here: http://sprunge.us/iUPV
> Format of the results is:
> status|spell|url|${SOURCE} (as in SOURCE from DETAILS)
>
> Statuses:
> SUCCESS: able to wget a file from the url, and the end of the url
> matches SOURCE
> FILE: able to weget a file from a scraped url, but the end doesn't match
> SOURCE
> FAILURE: couldn't find a project on sf.net by the spell name
>
> Obviously, there's a few shortcomings in this method, as there's no
> guarantee that the spell name matches the project name, as well as there
> might be multiple files associated with that project, and the default
> one might not be the one desired.
>
> Perhaps I'll work on making this a bit more robust, but for the most
> part, individual spells need to be fixed as they are come across.
>
> Thanks,
> David Kowis
>
>
>
> _______________________________________________
> SM-Discuss mailing list
> SM-Discuss AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/sm-discuss
>
>
> !DSPAM:2,51214a3315831804284693!
>


Attachment: signature.asc
Description: OpenPGP digital signature




Archive powered by MHonArc 2.6.24.

Top of Page