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

Bug#633779: lintian: validate DEP-5 debian/copyright files



On 2011-08-13 00:57, Jakub Wilk wrote:
> * Niels Thykier <niels@thykier.net>, 2011-07-18, 00:34:
>>> I attached a (preliminary?) patch adding support for very basic DEP-5
>>> validation. Beware, tag descriptions could use some love. ;)
>>
>> Hi
>>
>> Thanks for looking into this.
>>
>> Personally I am considering if this should be moved into its own check.
>> While it is related to the copyright-file check I think a DEP-5 check
>> could easily deserve its own check file.
>>  Particularly it may keep the logic simple(r) and the DEP-5 check will
>> most likely be extended in the future (e.g. to check the other
>> paragraphs).
> 
> As far as I can see, lintian currently checks only copyright files in
> binary packages, not in source packages. However, to properly validate a
> DEP-5 copyright file, you need access the source package. So perhaps
> it'd make sense to have a source-copyright-file check and move DEP-5
> stuff there?
> 

Hey,

That could work; alternatively you can use the "$type" parameter for the
check to check if you are run on a source package.  Obviously that will
require updating Type in checks/copyright-file.desc and possibly also
"Needs-Info".

Feel free to add a new separate check if that results in more
maintainable code.  :)

~Niels




Reply to: