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

Bug#776796: lintian: False positive unused-file-paragraph-in-dep5-copyright



* Josue Ortega <josueortega@debian.org.gt>, 2015-02-01, 17:17:
Lintian is returning a false positive unused-file-paragraph-in-dep5-copyright exactly when at the first paragraph in the Files field debian/* is specified.

Without a concrete example, I can only guess that you did something like this:

Files: debian/*
Copyright: 2015 Random Developer <randomdd@debian.org>
License: FooPL

Files: *
Copyright: 2015 Random Hacker <hacker@example.net>
License: BarPL


Here the following rule matters: "The last paragraph that matches a particular file applies to it." And since the last paragraph matches everything, the first one is unused.

The solution is to reorder the paragraphs: "More general paragraphs should therefore be given first, followed by more specific overrides."
[...]

Is this a new behaviour? since it's the first time I see it with this copyright file and I hadn't it changed it for a while.

This tag was added in Lintian 2.5.26, released in September 2014. But the copyright format specification had the rule about the paragraph order at least since 2011.

--
Jakub Wilk


Reply to: