From 3d0aaf0cea94bd00a9ea6bc30ed8388b62c7f38b Mon Sep 17 00:00:00 2001
From: joey <joey>
Date: Sun, 10 Aug 2003 03:27:20 +0000
Subject: [PATCH] r1584:    * Fix a bug in quoted section parsing that put the
 quotes in the parsed      out section number. Closes: #204731

---
 debian/changelog | 7 +++++++
 dh_installman    | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index a9f3786..7b6585a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+debhelper (4.1.62) unstable; urgency=low
+
+  * Fix a bug in quoted section parsing that put the quotes in the parsed
+    out section number. Closes: #204731
+
+ -- Joey Hess <joeyh@debian.org>  Sat,  9 Aug 2003 22:25:23 -0400
+
 debhelper (4.1.61) unstable; urgency=low
 
   * dh_makeshlibs: only scan files matching *.so.* and *.so, not *.so*.
diff --git a/dh_installman b/dh_installman
index 84b9469..9adca67 100755
--- a/dh_installman
+++ b/dh_installman
@@ -114,7 +114,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 			open (IN, $page) or die "$page: $!";
 		}
 		while (<IN>) {
-			if (/^\.TH\s+\S+\s+"?(\d+\S*)"?/) {
+			if (/^\.TH\s+\S+\s+"?(\d+[^"\s]*)"?/) {
 				$section=$1;
 				last;
 			}
-- 
2.39.5