Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Kent Fredric <kentfredric@...>
Subject: Re: RFC: Add new remote-id types in metadata.dtd
Date: Sat, 21 Apr 2012 15:33:18 +1200
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
>>>
>>> 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:
Re: RFC: Add new remote-id types in metadata.dtd
-- Corentin Chary
References:
RFC: Add new remote-id types in metadata.dtd
-- Corentin Chary
Re: RFC: Add new remote-id types in metadata.dtd
-- Kent Fredric
Re: RFC: Add new remote-id types in metadata.dtd
-- Corentin Chary
Re: RFC: Add new remote-id types in metadata.dtd
-- Kent Fredric
Re: RFC: Add new remote-id types in metadata.dtd
-- Corentin Chary
Re: RFC: Add new remote-id types in metadata.dtd
-- Kent Fredric
Re: RFC: Add new remote-id types in metadata.dtd
-- Corentin Chary
Re: RFC: Add new remote-id types in metadata.dtd
-- Kent Fredric
Re: RFC: Add new remote-id types in metadata.dtd
-- Corentin Chary
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: RFC: Add new remote-id types in metadata.dtd
Next by thread:
Re: RFC: Add new remote-id types in metadata.dtd
Previous by date:
Re: epatch: splitting out common options from user-specific ones
Next by date:
Re: RFC: Add new remote-id types in metadata.dtd


Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.