The following commit has been merged in the master branch:
commit bf4582423b44556f05744e7633d7d56a75fc77c9
Author: Joachim Breitner <[email protected]>
Date: Sat Jun 13 22:38:06 2009 +0200
Dpkg::Substvars: allow spaces in front of comments in substvars
Principle of least surprise.
diff --git a/scripts/Dpkg/Substvars.pm b/scripts/Dpkg/Substvars.pm
index c3601f2..34295ba 100644
--- a/scripts/Dpkg/Substvars.pm
+++ b/scripts/Dpkg/Substvars.pm
@@ -115,7 +115,7 @@ sub parse {
if (open(SV, "<", $varlistfile)) {
binmode(SV);
while (<SV>) {
- next if m/^\#/ || !m/\S/;
+ next if m/^\s*\#/ || !m/\S/;
s/\s*\n$//;
m/^(\w[-:0-9A-Za-z]*)\=/ ||
error(_g("bad line in substvars file %s at line %d"),
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]