wrap-and-sort eats package stanzas

Bug #1381898 reported by Harald Sitter on 2014-10-16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
One Hundred Papercuts
devscripts (Ubuntu)

Bug Description

When two package stanzas in debian/control are divided by a whitespace-line rather than an empty line

i.e. "\n \n" instead of "\n\n"

wrap-and-sort fails to parse the control file and instead swallows one of the packages.

It should:
a) not fail to parse that to begin with, since dpkg itself accepts this just fine
b) not remove duplicated fields in a stanza but error out refusing to do the sort at all
b-1) alternatively the tool should be renamed to wrap-and-sort-and-cleanup

Also see https://lists.ubuntu.com/archives/kubuntu-devel/2014-September/008753.html

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: devscripts 2.14.6 [modified: usr/bin/wrap-and-sort]
ProcVersionSignature: Ubuntu 3.16.0-22.29-generic 3.16.4
Uname: Linux 3.16.0-22-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.14.7-0ubuntu6
Architecture: amd64
CurrentDesktop: KDE
Date: Thu Oct 16 08:29:01 2014
InstallationDate: Installed on 2013-10-29 (351 days ago)
InstallationMedia: Kubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
SourcePackage: devscripts
UpgradeStatus: No upgrade log present (probably fresh install)

Harald Sitter (apachelogger) wrote :
Changed in devscripts (Ubuntu):
importance: Undecided → High
Changed in hundredpapercuts:
importance: Undecided → High
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers