Bug#750247: devscripts: [wrap-and-sort] removes package definitions when wrapping control file
Benjamin Drung
bdrung at debian.org
Mon Jun 2 20:09:08 UTC 2014
Am Montag, den 02.06.2014, 21:11 +0200 schrieb Philip Muškovac:
> Package: devscripts
> Version: 2.14.4
> Severity: normal
> User: ubuntu-devel at lists.ubuntu.com
> Usertags: origin-ubuntu trusty
>
> When using wrap-and-sort on a control file where it has to do a lot of
> restructuring, it sometimes removes package definitions - or rather merges two together:
>
> -Package: kdoctools-dev
> -Section: libdevel
> -Architecture: any
> -Depends: ${misc:Depends}, kdoctools5 (= ${binary:Version}),
> - libkf5archive-dev (>= 4.99.0)
> -Description: Documentation generation from docbook
> - Tools to read documentation in Docbook.
> - .
> - Contains development files for kdoctools.
> -
> Package: kdoctools5
> -Architecture: any
> -Multi-Arch: allowed
> Section: doc
> -Depends: ${shlibs:Depends}, ${misc:Depends}, libxml2-utils,
> - docbook-xml, docbook-xsl
> +Architecture: any
> +Depends: docbook-xml,
> + docbook-xsl,
> + libxml2-utils,
> + ${misc:Depends},
> + ${shlibs:Depends}
> Description: Documentation generation from docbook
> Tools to read documentation in Docbook.
> +Multi-Arch: allowed
The merged package definitions were separated by one line containing a
space (line 20 of your control file), but they should be separated by
one empty line. That's the reason why the package definitions were
joined.
wrap-and-sort should behave better in case of such an malformed control
file. It could strip all trailing spaces before parsing the file with
python-debian.
--
Benjamin Drung
Debian & Ubuntu Developer
More information about the devscripts-devel
mailing list