1 |
On Fri, Apr 20, 2012 at 9:37 AM, Kent Fredric <kentfredric@×××××.com> wrote: |
2 |
> On 20 April 2012 03:31, Corentin Chary <corentin.chary@×××××.com> wrote: |
3 |
>> Add rubygems, github, gitorious, pecl, pear, bitbucket. |
4 |
>> All of them are handled by my remoteids.py script. |
5 |
>> |
6 |
>> ref: https://bugs.gentoo.org/show_bug.cgi?id=406287 |
7 |
>> ref: https://github.com/iksaif/portage-janitor/blob/master/remoteids.py |
8 |
>> |
9 |
>> --- a/metadata/dtd/metadata.dtd 2010-03-02 18:52:11.000000000 +0100 |
10 |
>> +++ b/metadata/dtd/metadata.dtd 2012-04-19 14:22:14.077954310 +0200 |
11 |
>> @@ -61,7 +61,7 @@ |
12 |
>> <!ELEMENT bugs-to (#PCDATA)> |
13 |
>> <!-- specify a type of package identification tracker --> |
14 |
>> <!ELEMENT remote-id (#PCDATA)> |
15 |
>> - <!ATTLIST remote-id type (freshmeat|sourceforge|sourceforge-jp|cpan|vim|google-code|ctan|pypi|rubyforge|cran) #REQUIRED> |
16 |
>> + <!ATTLIST remote-id type (freshmeat|sourceforge|sourceforge-jp|cpan|vim|google-code|ctan|pypi|rubyforge|cran|rubygems|github|gitorious|pecl|pear|bitbucket) #REQUIRED> |
17 |
>> |
18 |
>> <!-- category/package information for cross-linking in descriptions |
19 |
>> and useflag descriptions --> |
20 |
>> |
21 |
>> -- |
22 |
>> Corentin Chary |
23 |
>> http://xf.iksaif.net/ |
24 |
> |
25 |
> |
26 |
> I suggested last week on #gentoo-perl that it might be nice to have |
27 |
> 'cpan' and 'cpan-module' ( or something like that ) to disambiguate 2 |
28 |
> queryable terms. ( where 'cpan' => 'the package name on cpan' ) |
29 |
> |
30 |
> For some purposes, its most convenient to use the distribution name, |
31 |
> and for other purposes, (ie: cpan clients) its more convenient to use |
32 |
> a Module name, and its not easy to translate between the two, as |
33 |
> Module names sometimes switch between packages they're shipped in. |
34 |
> |
35 |
> For instance, a while ago, the BioPerl module was shipped in a |
36 |
> distribution 'bioperl' , which has only recently been changed to |
37 |
> BioPerl |
38 |
> |
39 |
> |
40 |
> http://api.metacpan.org/release/_search?q=distribution:bioperl&fields=archive,author,date,download_url |
41 |
> |
42 |
> http://api.metacpan.org/release/_search?q=distribution:BioPerl&fields=archive,author,date,download_url |
43 |
> |
44 |
> vs |
45 |
> |
46 |
> |
47 |
> http://api.metacpan.org/module/_search?q=module.name:Bio\:\:Perl&fields=distribution,author,release |
48 |
|
49 |
Looks sane since the goal of remote-id is being able to identify the |
50 |
package upstream. |
51 |
Do you think you could patch remotesid.py to generate tags for cpan / |
52 |
cpan-modules ? Or at least give me a pseudo-algo that does the trick. |
53 |
Thanks :) |
54 |
|
55 |
-- |
56 |
Corentin Chary |
57 |
http://xf.iksaif.net |