Gentoo Archives: gentoo-dev

From: Kent Fredric <kentfredric@×××××.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 03:34:26
Message-Id: CAATnKFAA9hxsqc-NDGV8NXOPW1sqTARhXGKvjv2W+mPmDbPR9A@mail.gmail.com
In Reply to: Re: [gentoo-dev] RFC: Add new remote-id types in metadata.dtd by Corentin Chary
On 21 April 2012 08:33, Corentin Chary <corentin.chary@×××××.com> wrote:
> On Fri, Apr 20, 2012 at 9:35 PM, Kent Fredric <kentfredric@×××××.com> wrote: >> On 21 April 2012 01:34, Corentin Chary <corentin.chary@×××××.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

Replies

Subject Author
Re: [gentoo-dev] RFC: Add new remote-id types in metadata.dtd Corentin Chary <corentin.chary@×××××.com>