On Sat, Apr 21, 2012 at 03:33:18PM +1200, Kent Fredric wrote:
> On 21 April 2012 08:33, Corentin Chary <corentin.chary@...> wrote:
> > On Fri, Apr 20, 2012 at 9:35 PM, Kent Fredric <kentfredric@...> wrote:
> >> On 21 April 2012 01:34, Corentin Chary <corentin.chary@...> wrote:
> >>> Yeah, not very important, but seems to work with this patch:
> >>> https://github.com/iksaif/portage-janitor/commit/972aff94744741e34e99f917337430d245883c48
>
> 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"}}
> ]
> }
> }
> }
> }
> '
>
It is !
$ ./remoteids.py --diff WWW-Bugzilla Moose bioperl Scalar-List-Utils libwww-perl
--- a/dev-perl/WWW-Bugzilla/metadata.xml
+++ b/dev-perl/WWW-Bugzilla/metadata.xml
@@ -3,6 +3,8 @@
<pkgmetadata>
<herd>perl</herd>
<upstream>
+ <remote-id type="cpan-module">WWW::Bugzilla::Search</remote-id>
+ <remote-id type="cpan-module">WWW::Bugzilla</remote-id>
<remote-id type="cpan">WWW-Bugzilla</remote-id>
</upstream>
</pkgmetadata>
--- a/dev-perl/Moose/metadata.xml
+++ b/dev-perl/Moose/metadata.xml
@@ -3,6 +3,17 @@
<pkgmetadata>
<herd>perl</herd>
<upstream>
+ <remote-id type="cpan-module">Class::MOP</remote-id>
+ <remote-id type="cpan-module">Moose::Meta::Attribute::Native::Trait::Counter</remote-id>
+ <remote-id type="cpan-module">Moose::Meta::Attribute::Native::Trait::String</remote-id>
+ <remote-id type="cpan-module">Moose::Meta::Method::Delegation</remote-id>
+ <remote-id type="cpan-module">Moose::Meta::TypeConstraint::Role</remote-id>
+ <remote-id type="cpan-module">Moose::Meta::Attribute::Custom::Moose</remote-id>
+ <remote-id type="cpan-module">Moose::Meta::Attribute</remote-id>
+ <remote-id type="cpan-module">Moose::Meta::Method</remote-id>
+ <remote-id type="cpan-module">Moose::Error::Croak</remote-id>
+ <remote-id type="cpan-module">Moose::Util::MetaRole</remote-id>
+ <remote-id type="cpan-module">Moose::Role</remote-id>
<remote-id type="cpan">Moose</remote-id>
</upstream>
</pkgmetadata>
--- a/perl-core/Scalar-List-Utils/metadata.xml
+++ b/perl-core/Scalar-List-Utils/metadata.xml
@@ -3,6 +3,9 @@
<pkgmetadata>
<herd>perl</herd>
<upstream>
+ <remote-id type="cpan-module">List::Util</remote-id>
+ <remote-id type="cpan-module">Scalar::Util</remote-id>
+ <remote-id type="cpan-module">List::Util::XS</remote-id>
<remote-id type="cpan">Scalar-List-Utils</remote-id>
</upstream>
</pkgmetadata>
--- a/dev-perl/libwww-perl/metadata.xml
+++ b/dev-perl/libwww-perl/metadata.xml
@@ -3,6 +3,17 @@
<pkgmetadata>
<herd>perl</herd>
<upstream>
+ <remote-id type="cpan-module">LWP::Protocol::data</remote-id>
+ <remote-id type="cpan-module">LWP::Protocol::gopher</remote-id>
+ <remote-id type="cpan-module">LWP::Debug</remote-id>
+ <remote-id type="cpan-module">LWP::UserAgent</remote-id>
+ <remote-id type="cpan-module">LWP::Authen::Digest</remote-id>
+ <remote-id type="cpan-module">LWP::Protocol::file</remote-id>
+ <remote-id type="cpan-module">LWP::Protocol::loopback</remote-id>
+ <remote-id type="cpan-module">LWP::Protocol::MyFTP</remote-id>
+ <remote-id type="cpan-module">LWP::Protocol::ftp</remote-id>
+ <remote-id type="cpan-module">LWP::Protocol::cpan</remote-id>
+ <remote-id type="cpan-module">LWP::MemberMixin</remote-id>
<remote-id type="cpan">libwww-perl</remote-id>
</upstream>
</pkgmetadata>
--
Corentin Chary
http://xf.iksaif.net/
|