[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#719450: lintian: infofiles check for [image src=""] target



On 2013-08-22 01:40, Kevin Ryde wrote:
> Niels Thykier <niels@thykier.net> writes:
>>
>> remove the leading slash in the argument to normalize_pkg_path[1].
> 
> Are you sure?  I followed the synopsis and examples in Lintian::Util.
> 

Fair point, documentation does seem to suggest otherwise.  Codewise,
either way will work.  I think will update the documentation to do
without slashes so it is consistent with other functions/methods
accepting paths.

>> [1] Internally, Lintian refer to files relative to the package root
>> (i.e. without leading slash).
> 
> Yes.  But the arg to normalize_pkg_path() too?  I see for example
> systemd.pm
> 
>     $normalized = normalize_pkg_path('/', $path);
> 
> 

I am tempted to keep the particular usage as a special case.  The
alternative syntax is period (or even "./").

~Niels


Reply to: