Gentoo Archives: gentoo-dev

From: Corentin Chary <corentin.chary@×××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] RFC: Add new remote-id types in metadata.dtd
Date: Sat, 21 Apr 2012 09:20:02
Message-Id: 20120421091845.GF24273@falgoret
In Reply to: Re: [gentoo-dev] RFC: Add new remote-id types in metadata.dtd by Kent Fredric
1 On Sat, Apr 21, 2012 at 03:33:18PM +1200, Kent Fredric wrote:
2 > On 21 April 2012 08:33, Corentin Chary <corentin.chary@×××××.com> wrote:
3 > > On Fri, Apr 20, 2012 at 9:35 PM, Kent Fredric <kentfredric@×××××.com> wrote:
4 > >> On 21 April 2012 01:34, Corentin Chary <corentin.chary@×××××.com> wrote:
5 > >>> Yeah, not very important, but seems to work with this patch:
6 > >>> https://github.com/iksaif/portage-janitor/commit/972aff94744741e34e99f917337430d245883c48
7 >
8 > http://api.metacpan.org/release/Scalar-List-Utils
9 >
10 > Will be far better an option than parsing HTML =)
11 >
12 > And even better:
13 >
14 > curl -XPOST 'http://api.metacpan.org/module/_search' -d '
15 > {
16 > "fields": [
17 > "module.name",
18 > "release"
19 > ],
20 > "query": {
21 > "constant_score": {
22 > "filter" : {
23 > "and" : [
24 > { "term": { "distribution":"Scalar-List-Utils" } },
25 > { "term": { "status":"latest"} },
26 > { "term": { "mime":"text/x-script.perl-module"}},
27 > { "term": { "indexed":"true"}},
28 > { "term": { "module.authorized":"true"}}
29 > ]
30 > }
31 > }
32 > }
33 > }
34 > '
35 >
36
37 It is !
38
39 $ ./remoteids.py --diff WWW-Bugzilla Moose bioperl Scalar-List-Utils libwww-perl
40 --- a/dev-perl/WWW-Bugzilla/metadata.xml
41 +++ b/dev-perl/WWW-Bugzilla/metadata.xml
42 @@ -3,6 +3,8 @@
43 <pkgmetadata>
44 <herd>perl</herd>
45 <upstream>
46 + <remote-id type="cpan-module">WWW::Bugzilla::Search</remote-id>
47 + <remote-id type="cpan-module">WWW::Bugzilla</remote-id>
48 <remote-id type="cpan">WWW-Bugzilla</remote-id>
49 </upstream>
50 </pkgmetadata>
51 --- a/dev-perl/Moose/metadata.xml
52 +++ b/dev-perl/Moose/metadata.xml
53 @@ -3,6 +3,17 @@
54 <pkgmetadata>
55 <herd>perl</herd>
56 <upstream>
57 + <remote-id type="cpan-module">Class::MOP</remote-id>
58 + <remote-id type="cpan-module">Moose::Meta::Attribute::Native::Trait::Counter</remote-id>
59 + <remote-id type="cpan-module">Moose::Meta::Attribute::Native::Trait::String</remote-id>
60 + <remote-id type="cpan-module">Moose::Meta::Method::Delegation</remote-id>
61 + <remote-id type="cpan-module">Moose::Meta::TypeConstraint::Role</remote-id>
62 + <remote-id type="cpan-module">Moose::Meta::Attribute::Custom::Moose</remote-id>
63 + <remote-id type="cpan-module">Moose::Meta::Attribute</remote-id>
64 + <remote-id type="cpan-module">Moose::Meta::Method</remote-id>
65 + <remote-id type="cpan-module">Moose::Error::Croak</remote-id>
66 + <remote-id type="cpan-module">Moose::Util::MetaRole</remote-id>
67 + <remote-id type="cpan-module">Moose::Role</remote-id>
68 <remote-id type="cpan">Moose</remote-id>
69 </upstream>
70 </pkgmetadata>
71 --- a/perl-core/Scalar-List-Utils/metadata.xml
72 +++ b/perl-core/Scalar-List-Utils/metadata.xml
73 @@ -3,6 +3,9 @@
74 <pkgmetadata>
75 <herd>perl</herd>
76 <upstream>
77 + <remote-id type="cpan-module">List::Util</remote-id>
78 + <remote-id type="cpan-module">Scalar::Util</remote-id>
79 + <remote-id type="cpan-module">List::Util::XS</remote-id>
80 <remote-id type="cpan">Scalar-List-Utils</remote-id>
81 </upstream>
82 </pkgmetadata>
83 --- a/dev-perl/libwww-perl/metadata.xml
84 +++ b/dev-perl/libwww-perl/metadata.xml
85 @@ -3,6 +3,17 @@
86 <pkgmetadata>
87 <herd>perl</herd>
88 <upstream>
89 + <remote-id type="cpan-module">LWP::Protocol::data</remote-id>
90 + <remote-id type="cpan-module">LWP::Protocol::gopher</remote-id>
91 + <remote-id type="cpan-module">LWP::Debug</remote-id>
92 + <remote-id type="cpan-module">LWP::UserAgent</remote-id>
93 + <remote-id type="cpan-module">LWP::Authen::Digest</remote-id>
94 + <remote-id type="cpan-module">LWP::Protocol::file</remote-id>
95 + <remote-id type="cpan-module">LWP::Protocol::loopback</remote-id>
96 + <remote-id type="cpan-module">LWP::Protocol::MyFTP</remote-id>
97 + <remote-id type="cpan-module">LWP::Protocol::ftp</remote-id>
98 + <remote-id type="cpan-module">LWP::Protocol::cpan</remote-id>
99 + <remote-id type="cpan-module">LWP::MemberMixin</remote-id>
100 <remote-id type="cpan">libwww-perl</remote-id>
101 </upstream>
102 </pkgmetadata>
103
104
105 --
106 Corentin Chary
107 http://xf.iksaif.net/

Replies

Subject Author
[gentoo-dev] Re: RFC: Add new remote-id types in metadata.dtd Torsten Veller <tove@g.o>