On 2013-08-22 01:40, Kevin Ryde wrote:
> Niels Thykier <[email protected]> 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


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to