Package: lsb-core
Version: 3.0-12
Severity: important
Tags: patch
When putting the RFC822 headers in the headers-dictionary,
initdutils.py breaks on empty headers instead of just skipping them.
I found this to be the case both in versions 2.0-7 (woody) and 3.0-12
(sid).
The attached patch fixes it.
As this affects vendors trying to ship lsb-compliant packages for
current distributions, I would very much favour if this bugfix makes it
into woody as well.
Thanks,
Thomas
--- /usr/lib/lsb/initdutils.py.orig 2005-12-13 18:25:32.0 +0100
+++ /usr/lib/lsb/initdutils.py 2005-12-13 18:25:54.0 +0100
@@ -80,7 +80,7 @@
for header, body in inheaders.iteritems():
# Ignore empty headers
if not body.strip():
-break
+continue
if header in ('Default-Start', 'Default-Stop'):
headers[header] = map(int, body.split())