1 |
On 21 April 2012 08:33, Corentin Chary <corentin.chary@×××××.com> wrote: |
2 |
> On Fri, Apr 20, 2012 at 9:35 PM, Kent Fredric <kentfredric@×××××.com> wrote: |
3 |
>> On 21 April 2012 01:34, Corentin Chary <corentin.chary@×××××.com> wrote: |
4 |
>>> Yeah, not very important, but seems to work with this patch: |
5 |
>>> https://github.com/iksaif/portage-janitor/commit/972aff94744741e34e99f917337430d245883c48 |
6 |
>>> |
7 |
>>> Example: |
8 |
>>> $ python remoteids.py --diff WWW-Bugzilla Moose bioperl |
9 |
>>> --- a/dev-perl/WWW-Bugzilla/metadata.xml |
10 |
>>> +++ b/dev-perl/WWW-Bugzilla/metadata.xml |
11 |
>>> @@ -3,6 +3,7 @@ |
12 |
>>> <pkgmetadata> |
13 |
>> ... |
14 |
>>> -- |
15 |
>>> Corentin Chary |
16 |
>>> http://xf.iksaif.net/ |
17 |
>>> |
18 |
>> |
19 |
>> What does it to for say, Scalar-List-Utils ? or libwww-perl ? |
20 |
> |
21 |
> Nothing, it's one of the cases you'll have to handle by-hand. |
22 |
> Another option is to parse the HTML from |
23 |
> http://search.cpan.org/dist/Scalar-List-Utils/ but I'm not a fan of |
24 |
> HTML-parsing. |
25 |
> |
26 |
> -- |
27 |
> Corentin Chary |
28 |
> http://xf.iksaif.net |
29 |
> |
30 |
|
31 |
http://api.metacpan.org/release/Scalar-List-Utils |
32 |
|
33 |
Will be far better an option than parsing HTML =) |
34 |
|
35 |
And even better: |
36 |
|
37 |
curl -XPOST 'http://api.metacpan.org/module/_search' -d ' |
38 |
{ |
39 |
"fields": [ |
40 |
"module.name", |
41 |
"release" |
42 |
], |
43 |
"query": { |
44 |
"constant_score": { |
45 |
"filter" : { |
46 |
"and" : [ |
47 |
{ "term": { "distribution":"Scalar-List-Utils" } }, |
48 |
{ "term": { "status":"latest"} }, |
49 |
{ "term": { "mime":"text/x-script.perl-module"}}, |
50 |
{ "term": { "indexed":"true"}}, |
51 |
{ "term": { "module.authorized":"true"}} |
52 |
] |
53 |
} |
54 |
} |
55 |
} |
56 |
} |
57 |
' |
58 |
|
59 |
|
60 |
-- |
61 |
Kent |
62 |
|
63 |
perl -e "print substr( \"edrgmaM SPA NOcomil.ic\\@tfrken\", \$_ * 3, |
64 |
3 ) for ( 9,8,0,7,1,6,5,4,3,2 );" |
65 |
|
66 |
http://kent-fredric.fox.geek.nz |