On 21 April 2012 08:33, Corentin Chary <corentin.ch...@gmail.com> wrote:
> On Fri, Apr 20, 2012 at 9:35 PM, Kent Fredric <kentfred...@gmail.com> wrote:
>> On 21 April 2012 01:34, Corentin Chary <corentin.ch...@gmail.com> wrote:
>>> Yeah, not very important, but seems to work with this patch:
>>> https://github.com/iksaif/portage-janitor/commit/972aff94744741e34e99f917337430d245883c48
>>>
>>> Example:
>>> $ python remoteids.py --diff WWW-Bugzilla Moose bioperl
>>> --- a/dev-perl/WWW-Bugzilla/metadata.xml
>>> +++ b/dev-perl/WWW-Bugzilla/metadata.xml
>>> @@ -3,6 +3,7 @@
>>>  <pkgmetadata>
>> ...
>>> --
>>> Corentin Chary
>>> http://xf.iksaif.net/
>>>
>>
>> What does it to for say, Scalar-List-Utils ?  or libwww-perl ?
>
> Nothing, it's one of the cases you'll have to handle by-hand.
> Another option is to parse the HTML from
> http://search.cpan.org/dist/Scalar-List-Utils/ but I'm not a fan of
> HTML-parsing.
>
> --
> Corentin Chary
> http://xf.iksaif.net
>

http://api.metacpan.org/release/Scalar-List-Utils

Will be far better an option than parsing HTML =)

And even better:

curl -XPOST 'http://api.metacpan.org/module/_search' -d '
{
        "fields": [
                "module.name",
                "release"
        ],
        "query": {
                "constant_score": {
                        "filter" : {
                                "and" : [
                                        { "term": { 
"distribution":"Scalar-List-Utils" } },
                                        { "term": { "status":"latest"} },
                                        { "term": { 
"mime":"text/x-script.perl-module"}},
                                        { "term": { "indexed":"true"}},
                                        { "term": { "module.authorized":"true"}}
                                ]
                        }
                }
        }
}
'


-- 
Kent

perl -e  "print substr( \"edrgmaM  SPA NOcomil.ic\\@tfrken\", \$_ * 3,
3 ) for ( 9,8,0,7,1,6,5,4,3,2 );"

http://kent-fredric.fox.geek.nz

Reply via email to