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

Bug#536434: [checks/changelog-file] Do not check debian-changelog-file-is-a-symlink for Ubuntu packages

Benjamin Drung <benjamin.drung@gmail.com> writes:

> Ubuntu allows symlinked changelog files. So please do not report
> debian-changelog-file-is-a-symlink if the package is an Ubuntu
> package.
> I tried to write a patch for it, but Perl does not like me (or the
> other way round). The check rule should look like
> if (-l 'changelog' && !($version =~ /$UBUNTU_REGEX/ or $distribution =~ /$UBUNTU_REGEX/)) {
>     tag "debian-changelog-file-is-a-symlink", "";
>     return 0;
> }
> but I don't know how to determine $distribution.

That's the problem: neither does Lintian without having access to the
changelog file, which is where the distribution is stated.

We can handle this for packages that contain ubuntu in the version
number, but I don't see any way for Lintian to know that this is an
Ubuntu package if it contains no changelog (and a dangling symlink,
which is what we see for such packages, is equivalent to having no
changelog) and doesn't have ubuntu in the version number.

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

Reply to: