Bug#735309: libconfig-model-dpkg-perl: Please support canonical Vcs fields

Dominique Dumont dominique.dumont at hp.com
Tue Jan 14 18:03:08 UTC 2014


On Tuesday 14 January 2014 16:05:47 you wrote:
> since some time lintian issues information if the Vcs fields are not
> canonical.  IMHO it would be easy to change the Vcs fields using cme.
> 
> What do you think?

Yes. It should be fairly easy to use warn_unless [1] to encourage people 
to use canonical VCS fields. Cumputing the right canonical field will be 
a bit of a hack though.

Something like:

 warn_unless => {
   canonical_field => {
     code => 'my $name= $self->grab_value("- Source"); m!http://$name.com/!',
	fix => '  my $name= $self->grab_value("- Source"); "http://$name.com/"',
   }
 }

May be I should enhance ComputedValue to warn if a value is overridden to avoid this hacks.
Thus defining these canonical fields will be easier...

Do you know where are these canonical fields defined ?

All the best

[1] http://search.cpan.org/dist/Config-Model/lib/Config/Model/Value.pm
-- 
 https://github.com/dod38fr/   -o- http://search.cpan.org/~ddumont/
http://ddumont.wordpress.com/  -o-   irc: dod at irc.debian.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20140114/aee524ca/attachment-0001.html>


More information about the pkg-perl-maintainers mailing list