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