Created attachment 184516 [details]
Patch for CPAN SiteHandler
I would like to introduce new CPAN SiteHandler. That will allow dramatically speedup process of checking p5-ports which are hosted on CPAN and mirrors.
To activate this handler you need:
1. http://www.cpan.org/modules/02packages.details.txt into tmpdir (tmpdir declared inside portscout.conf).
2. Create cron task to re-download 02packages.details.txt on daily basis.
- Add CPAN SiteHander
- bump PORTREVISION
Any news or i'll commit by timeout.
(In reply to Andrej Zverev from comment #1)
Thank you for submitting this Andrej. I'll be reviewing this but haven't had time in the past week. I should have at least ack'd, apologies for that.
Can you detail what testing this has been through, and provide (as an attachment) a log of this site handler in use in debug mode if possible please.
I note also that Portroach (OpenBSD's fork) has a CPAN handler . Is this the same or based on that? I'd like to keep differences to a minimum, particularly for generic stuff.
In particular if the Portroach site handler doesn't require (I havent looked yet) fetching a list at regular intervals and a cron job, or instead uses a public API, that is also preferable
(In reply to Kubilay Kocak from comment #2)
Hm, i never saw OpenBSD's implementations. My main goal was speed up and solve one issue then modules don't have path and laying inside author/id directory, so then author is changed portscout unable to find new version.
As I can see OpenBSD using API for looking, well, if API don't have limitation by requests it not so bad.
I'll look deeper into, so timeout :-)