From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SLR5e-0008Fl-M6 for garchives@archives.gentoo.org; Sat, 21 Apr 2012 03:34:26 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C21B1E09E2; Sat, 21 Apr 2012 03:34:07 +0000 (UTC) Received: from mail-iy0-f181.google.com (mail-iy0-f181.google.com [209.85.210.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 192B2E0796 for ; Sat, 21 Apr 2012 03:33:18 +0000 (UTC) Received: by iagk10 with SMTP id k10so18683208iag.40 for ; Fri, 20 Apr 2012 20:33:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=VCjYyTPf2abiaevB3nEEB1+gd0zJKYKaJGxprkpYb9k=; b=odXvTt3cuNrM1nQlrXg6lpoCW64Ketyap3QItphsz/aKLTXGTAgwn7Y13m7lgVx/23 /Z6bfRlTGGu1hT6RB3fb0i0SBQ/1qz4yg43Ki5Zrs4lsPf0I3GWUxAMcYIN8xRC7RAte hwsS1kG2r/+qbaYki37kd8e8fk+1FeoaZASAGTAxXhr6he5uXqN3vS8377eptwoLgNxo fEB0FEosRhrcxurs1o3Dx3PpOJ41DsYUhmzhI3ewKQ747SQubia8EfPVdrVZvh3ILkPi tlTah+ct5mEr5ekWua0TLxnw7gxz/TGqp/b9qI5peQywc1c1Sv2a5IxW93wD60S5xM/D VJMA== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Received: by 10.42.141.133 with SMTP id o5mr6699422icu.13.1334979198522; Fri, 20 Apr 2012 20:33:18 -0700 (PDT) Received: by 10.42.197.5 with HTTP; Fri, 20 Apr 2012 20:33:18 -0700 (PDT) In-Reply-To: References: <20120419153111.GD24273@falgoret> <20120420133409.GE24273@falgoret> Date: Sat, 21 Apr 2012 15:33:18 +1200 Message-ID: Subject: Re: [gentoo-dev] RFC: Add new remote-id types in metadata.dtd From: Kent Fredric To: gentoo-dev@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: e2ed2507-6f94-4368-86a3-d839701c488e X-Archives-Hash: 10dddd03b70aab18b806c1449fb4d762 On 21 April 2012 08:33, Corentin Chary wrote: > On Fri, Apr 20, 2012 at 9:35 PM, Kent Fredric wro= te: >> On 21 April 2012 01:34, Corentin Chary wrote: >>> Yeah, not very important, but seems to work with this patch: >>> https://github.com/iksaif/portage-janitor/commit/972aff94744741e34e99f9= 17337430d245883c48 >>> >>> 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 @@ >>> =C2=A0 >> ... >>> -- >>> Corentin Chary >>> http://xf.iksaif.net/ >>> >> >> What does it to for say, Scalar-List-Utils ? =C2=A0or 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 =3D) 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"}} ] } } } } ' --=20 Kent perl -e=C2=A0 "print substr( \"edrgmaM=C2=A0 SPA NOcomil.ic\\@tfrken\", \$_= * 3, 3 ) for ( 9,8,0,7,1,6,5,4,3,2 );" http://kent-fredric.fox.geek.nz