FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Development

 
 
LinkBack Thread Tools
 
Old 05-17-2012, 12:05 AM
Kent Fredric
 
Default RFC: Add new remote-id types in metadata.dtd

On 13 May 2012 07:43, Torsten Veller <tove@gentoo.org> wrote:
> * Corentin Chary <corentin.chary@gmail.com>:
>> On Sat, Apr 21, 2012 at 03:33:18PM +1200, Kent Fredric wrote:
>> > * * * * * * * * * * * * * * * * * * { "term": { "status":"latest"} },
>> > * * * * * * * * * * * * * * * * * * { "term": { "module.authorized":"true"}}
>
> What does this mean?
> - "latest"? this term looks like maintenance work.
> - what is "authorized"?

Oh, and authorized is just "Has this individual release been released
by a person who has been granted permission to release that module",
as per the PAUSE authentication system. ( To compare with indexed,
which can be turned on/off by the releaser with the 'no index' flags ,
to get the authorization bit the module owner has to grant your PAUSE
name rights )

--
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
 
Old 05-18-2012, 06:46 AM
Corentin Chary
 
Default RFC: Add new remote-id types in metadata.dtd

On Thu, May 17, 2012 at 2:02 AM, Kent Fredric <kentfredric@gmail.com> wrote:
> On 13 May 2012 07:43, Torsten Veller <tove@gentoo.org> wrote:
>> * Corentin Chary <corentin.chary@gmail.com>:
>>> On Sat, Apr 21, 2012 at 03:33:18PM +1200, Kent Fredric wrote:
>>> > * * * * * * * * * * * * * * * * * * { "term": { "status":"latest"} },
>>> > * * * * * * * * * * * * * * * * * * { "term": { "module.authorized":"true"}}
>>
>> What does this mean?
>> - "latest"? this term looks like maintenance work.
>> - what is "authorized"?
>
> "latest" means that it will fetch metadata for whatever is deemed the
> most recent non-dev release, which is really the only sane option to
> go for if you want a list of modules that currently pertain to the
> distribution. *You could request *all* releases and then find a union
> of elements ... but that would be both erroneous and very time
> consuming.
>
>> It doesn't even list "Moose" for Moose?
>
> Its probably falling outside the initial 10 results, I forgot it did that,
>
>> 02packages.details.txt.gz lists 72 package names for Moose-2.0602.
>>
>
> Need to bolt on a { "size": 100 } *to the query to expand how may
> results it will return.

Updated remotesid.py to use that, correctly add Moose in the diff now !

> *curl -XPOST 'http://api.metacpan.org/module/_search' -d '
> {
> * * * "fields": [
> * * * * * * * "module.name",
> * * * * * * * "release"
> * * * ],
> * * * "query": {
> * * * * * * * "constant_score": {
> * * * * * * * * * * * "filter" : {
> * * * * * * * * * * * * * * * "and" : [
> * * * * * * * * * * * * * * * * * * * { "term": { "distribution":"Moose" } },
> * * * * * * * * * * * * * * * * * * * { "term": { "status":"latest"} },
> * * * * * * * * * * * * * * * * * * * { "term": {
> "mime":"text/x-script.perl-module"}},
> * * * * * * * * * * * * * * * * * * * { "term": { "indexed":"true"}},
> * * * * * * * * * * * * * * * * * * * { "term": { "module.authorized":"true"}}
> * * * * * * * * * * * * * * * ]
>
> * * * * * * * * * * * }
> * * * * * * * }
> * * * },
> * * * "size": 100
> }
>
> ^ *that | grep module.name *| wc -l * # 83
>
> --
> 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
>
 
Old 05-22-2012, 02:16 PM
Michael Weber
 
Default RFC: Add new remote-id types in metadata.dtd

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Can we bump our gentoo-x86/skel.metadata.xml and
app-vim/gentoo-syntax:/usr/share/vim/vimfiles/plugin/newmetadata.vim
files to display some upstream+remote-id lines to make these tags more
prominent?

<upstream>
<maintainer status="active">
<email></email>
<name></name>
</maintainer>
<changelog></changelog>
<doc lang="en"></doc>
<bugs-to></bugs-to>
<remote-id type=""></remote-id>
</upstream>


On 04/19/2012 05:31 PM, Corentin Chary wrote:
> Add rubygems, github, gitorious, pecl, pear, bitbucket. All of them
> are handled by my remoteids.py script.
>
> ref: https://bugs.gentoo.org/show_bug.cgi?id=406287 ref:
> https://github.com/iksaif/portage-janitor/blob/master/remoteids.py
>
> --- a/metadata/dtd/metadata.dtd 2010-03-02 18:52:11.000000000
> +0100 +++ b/metadata/dtd/metadata.dtd 2012-04-19 14:22:14.077954310
> +0200 @@ -61,7 +61,7 @@ <!ELEMENT bugs-to (#PCDATA)> <!-- specify a
> type of package identification tracker --> <!ELEMENT remote-id
> (#PCDATA)> - <!ATTLIST remote-id type
> (freshmeat|sourceforge|sourceforge-jp|cpan|vim|google-code|ctan|pypi|rubyforge|cran)
> #REQUIRED> + <!ATTLIST remote-id type
> (freshmeat|sourceforge|sourceforge-jp|cpan|vim|google-code|ctan|pypi|rubyforge|cran|rubygems|github|gito rious|pecl|pear|bitbucket)
> #REQUIRED>
>
> <!-- category/package information for cross-linking in
> descriptions and useflag descriptions -->
>


- --
- --
Gentoo Dev
http://xmw.de/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iF4EAREIAAYFAk+7n6IACgkQknrdDGLu8JB0bwEAlh9AilEx70 0DVEwQYD2KJxtc
nLrzXyCrZZLZLE6cpX8BAJIj05i+LN8ZLJOH3bAtcSp41YG4Ea rviiKTdEpy2Yon
=CQje
-----END PGP SIGNATURE-----
 

Thread Tools




All times are GMT. The time now is 05:45 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org