[SCM] Debian package checker branch, master, updated. 2.2.5-57-g6bf7673
The following commit has been merged in the master branch:
commit a27670535901903720c1e6fe70ba5a26cc8acc12
Author: Russ Allbery <rra@debian.org>
Date: Sat Feb 21 20:57:16 2009 -0800
Preserve leading whitespace when parsing control files
* lib/Util.pm:
+ [RA] Only take the first space after a field name as the separator
and treat the rest as part of the field value so that other parts of
Lintian can see the leading spaces.
diff --git a/debian/changelog b/debian/changelog
index f17d2dd..3544705 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -99,6 +99,9 @@ lintian (2.2.6) UNRELEASED; urgency=low
* lib/Util.pm:
+ [RA] Minor optimizations to {read,parse}_dpkg_control. Patch from
Raphael Geissert.
+ + [RA] Only take the first space after a field name as the separator
+ and treat the rest as part of the field value so that other parts of
+ Lintian can see the leading spaces.
* private/refresh-virtual-packages-data:
+ [RA] New script to generate the list of virtual packages. Based on
diff --git a/lib/Util.pm b/lib/Util.pm
index 9d49332..15ddc2c 100644
--- a/lib/Util.pm
+++ b/lib/Util.pm
@@ -107,7 +107,7 @@ sub parse_dpkg_control {
$last_tag = $tag;
}
# new field?
- elsif (m/^(\S+):\s*(.*)$/o) {
+ elsif (m/^(\S+):\s?(.*)$/o) {
$open_section = 1;
my ($tag,$value) = (lc $1,$2);
--
Debian package checker
Reply to: