From: Frank Lichtenheld Date: Thu, 29 Nov 2007 22:23:53 +0000 (+0100) Subject: parsecdata: Fix parsing of fields starting with a colon X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9260be9dc16539daf15025298070f90f5d0745df;p=dpkg 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. --- 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);