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

Andreas Tille tille at debian.org
Tue Jan 14 18:15:15 UTC 2014


Hi Dominique,

On Tue, Jan 14, 2014 at 07:03:08PM +0100, Dominique Dumont wrote:
> 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.

Yes - that's why I have choosen wishlist severity.

> 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 ?

Hmmm, lintian seems to be able to compute the values - at least it
usually comes up with a valid value in the warning text.  Since lintian
is in Perl as well the code should be somehow available to some extend.
Unfortunately Perl is not my mother tongue and I guess you will have a
less harder time to parse this.

> All the best

Hope this helps

     Andreas.

-- 
http://fam-tille.de



More information about the pkg-perl-maintainers mailing list