diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-08-25 13:19:17 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-08-25 13:19:17 -0400 |
commit | f92915e39eef5b24698881576121356ccba0b7c8 (patch) | |
tree | 52dc07fc1cdd3a3bd75021d767d8886c1d6157ea /dh_installdocs | |
parent | fe2118282cb6a5e3f8e55bdca860c3e70082356d (diff) |
dh_installdocs: Loosen the Document field parsing, to accept everything doc-base *really* accepts in a doc id (not just what it's documented to accept). Closes: #543499
Diffstat (limited to 'dh_installdocs')
-rwxr-xr-x | dh_installdocs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dh_installdocs b/dh_installdocs index 87954116..1226cf8f 100755 --- a/dh_installdocs +++ b/dh_installdocs @@ -200,7 +200,8 @@ foreach my $package (@{$dh{DOPACKAGES}}) { # Parse the file to get the doc id. open (IN, "debian/$fn") || die "Cannot read debian/$fn."; while (<IN>) { - if (/^Document:\s+([-+.a-z0-9]+)/) { + s/\s*$//; + if (/^Document\s*:\s*(.*)/) { $doc_ids{$fn}=$1; last; } |