From 9260be9dc16539daf15025298070f90f5d0745df Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Thu, 29 Nov 2007 23:23:53 +0100 Subject: [PATCH] parsecdata: Fix parsing of fields starting with a colon Fix regex to determine the field name correctly if the field's value starts with a colon. --- ChangeLog | 6 ++++++ debian/changelog | 5 ++++- scripts/controllib.pl | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 63c996f4..3f38c618 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-11-29 Frank Lichtenheld + + * scripts/controllib.pl (parsecdata): Fix + regex to determine the field name correctly + if the field's value starts with a colon. + 2007-11-29 Guillem Jover * configure.ac: Bump version to 1.14.13~. diff --git a/debian/changelog b/debian/changelog index 8aadeaed..fc5f6f3d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,8 +3,11 @@ dpkg (1.14.13) UNRELEASED; urgency=low [ Frank Lichtenheld ] * Add an own manpage for Dpkg's version format. Mostly stolen from policy. Closes: #373003 + * Fix control file parsing for field values starting with a colon. + Apparently nobody ever needed this until Vcs-Cvs came along. + Closes: #453364 - -- Guillem Jover Thu, 29 Nov 2007 07:08:35 +0200 + -- Frank Lichtenheld Thu, 29 Nov 2007 23:04:33 +0100 dpkg (1.14.12) unstable; urgency=low diff --git a/scripts/controllib.pl b/scripts/controllib.pl index 6e2a4b40..2d6e36b7 100755 --- a/scripts/controllib.pl +++ b/scripts/controllib.pl @@ -281,7 +281,7 @@ sub parsecdata { next if (m/^$/ and $paraborder); next if (m/^#/); $paraborder=0; - if (m/^(\S+)\s*:\s*(.*)$/) { + if (m/^(\S+?)\s*:\s*(.*)$/) { $cf = $1; my $v = $2; $cf= &capit($cf); -- 2.39.5