Глава 7. Quality of packaging

Содержание

7.1. Reformat debian/* files with wrap-and-sort
7.2. Validate debian/* files with debputy

The quality of Debian packaging can be improved by using testing tools.

If you follow «Глава 4, Настройка инструментов», these are automatically executed. You are expected to fix all warnings.

It is good idea to reformat debian/* files consistently using the wrap-and-sort(1) command in devscripts package.

Reformat debian/* files. 

$ wrap-and-sort -vast

The new debputy tool [17] includes subcommands to validate (and fix) most files in debian/*.

Check correctness of files in debian/*. 

$ debputy lint --spellcheck

Format debian/control and debian/tests/control files. 

$ debputy reformat --style black

Using the «debputy reformat» command obsoletes using «wrap-and-sort -vast».

The debputy tool also includes a language server. You can set up to get real-time feedback while editing debian/* files with any modern editor supporting the Language Server Protocol.



[17] The main purpose of the debputy tool is to offer a new Debian package build paradigm. This new paradigm is beyond the scope of this tutorial.