]> git.donarmstrong.com Git - debhelper.git/commitdiff
r268: * dh_installinfo: failed pretty miserably if the info file's section
authorjoey <joey>
Mon, 6 Sep 1999 23:35:56 +0000 (23:35 +0000)
committerjoey <joey>
Mon, 6 Sep 1999 23:35:56 +0000 (23:35 +0000)
     contained '/' characters. Doesn't now.

debian/changelog
dh_installinfo

index 2ce69c2f6d6ca9de3e1ff63c99e37d9a5776c9f2..26e97bfc5e11a04afce793938627e2685820cd93 100644 (file)
@@ -1,3 +1,10 @@
+debhelper (2.0.42) unstable; urgency=low
+
+  * dh_installinfo: failed pretty miserably if the info file's section
+    contained '/' characters. Doesn't now.
+
+ -- Joey Hess <joeyh@master.debian.org>  Mon,  6 Sep 1999 16:33:13 -0700
+
 debhelper (2.0.41) unstable; urgency=low
 
   * dh_installinfo: use FHS info dir. I wonder how I missed that..
index 55deb3625310a63b2e7c363d1b4c0ff75be9cfc4..fe03433b7c85bbf6e9eda9e3bb152010766dcacb 100755 (executable)
@@ -48,6 +48,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
                        my $fn="/usr/share/info/".Dh_Lib::basename($file);
                        
                        if ($section ne '') {
+                               $section=~s:/:\\/:g; # allow / in section.
                                autoscript($PACKAGE,"postinst","postinst-info",
                                        "s/#SECTION#/$section/g;s:#FILE#:$fn:");
                        }