Table of Contents
The quality of Debian packaging can be improved by using testing tools.
If you follow “Chapter 4, Tool Setups”, 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.