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

Bug#527843: "symlink-has-double-slash" should be pedantic, or?



Holger Levsen <holger@layer-acht.org> writes:

> I stumbled over
> http://lintian.debian.org/tags/symlink-has-double-slash.html and
> wonder why it's severity: important and not pendantic. Can you
> explain?  It doesnt seem to break anything but is only aesthetic, so
> :)
>
> This symlink contains two successive slashes (//). This is in
> violation of policy, where it is stated that symlinks should be as
> short as possible If you use debhelper, running dh_link after creating
> the package structure will fix this problem for you.  Refer to Debian
> Policy Manual section 10.5 (Symbolic links) for details.  Severity:
> important, Certainty: certain
>
> Policy 10.5 only mentions that links with foo/../bar are deprecated.

It also says what the long description says it does.  :)

    In addition, symbolic links should be specified as short as
    possible, i.e., link targets like foo/../bar are deprecated.

A symlink containing a double slash is not as short as possible.
foo/../bar is given as an example (i.e. == for example), but it's not
the only case.

That being said, yes, it's relatively picky and unlike relative symlinks
with /../ it's unlikely to cause any particular problems.  I could see
downgrading it to minor, which is the severity I'd use when filing a
bug.  It's really easy to fix, though (dh_link will fix it automatically
even), and it is against what Policy says to do, so I don't think
downgrading all the way to pedantic is warranted.

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>



Reply to: