]> git.donarmstrong.com Git - debhelper.git/commitdiff
r1956: * Correct some incorrect instances of "v4 only" in docs. Closes: #381536
authorjoeyh <joeyh>
Tue, 7 Nov 2006 22:10:35 +0000 (22:10 +0000)
committerjoeyh <joeyh>
Tue, 7 Nov 2006 22:10:35 +0000 (22:10 +0000)
* dh_installinfo: Put the section madness to bed by not passing any section
  information to install-info. Current install-info parses INFO-DIR-SECTION
  on its own if that's not specified. Closes: #337215

autoscripts/postinst-info
autoscripts/postinst-info-nosection [deleted file]
debian/changelog
dh_fixperms
dh_installinfo
dh_link

index b528b5d8552ae5df6b2c484de6a77bcc9a2b1c1d..ffef86368d8af8828c00819a2aa556ba2fc11ee4 100644 (file)
@@ -1,3 +1,3 @@
 if [ "$1" = "configure" ]; then
-       install-info --quiet --section "\Q#SECTION#\E" "#SECTION#" #FILE#
+       install-info --quiet #FILE#
 fi
diff --git a/autoscripts/postinst-info-nosection b/autoscripts/postinst-info-nosection
deleted file mode 100644 (file)
index ffef863..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-if [ "$1" = "configure" ]; then
-       install-info --quiet #FILE#
-fi
index 24f7e662f565843772ceb2150a2561e3b93b2b68..33d20d5e9dbf85ea5ee8e1481152350e9699cd0e 100644 (file)
@@ -11,8 +11,12 @@ debhelper (5.0.41) UNRELEASED; urgency=low
   * Tighten python-support and python-central dependencies of debhelper,
     in an IMHO rather futile attempt to deal with derived distributions.
     Closes: #395495
+  * Correct some incorrect instances of "v4 only" in docs. Closes: #381536
+  * dh_installinfo: Put the section madness to bed by not passing any section
+    information to install-info. Current install-info parses INFO-DIR-SECTION
+    on its own if that's not specified. Closes: #337215
 
- -- Joey Hess <joeyh@debian.org>  Fri, 27 Oct 2006 13:35:38 -0400
+ -- Joey Hess <joeyh@debian.org>  Tue,  7 Nov 2006 17:04:47 -0500
 
 debhelper (5.0.40) unstable; urgency=medium
 
index 2a565bd3f926937b12605c83bc83f9384d9cdeda..775ab55e131428cae372fa13bb04e6c3ccda35a0 100755 (executable)
@@ -85,7 +85,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                "-perm -5 -name '*.pm' $find_options -print0",
                "2>/dev/null | xargs -0r chmod a-X");
        
-       # v4 only
+       # v4 and up
        if (! compat(3)) {
                # Programs in the bin and init.d dirs should be executable..
                for my $dir (qw{usr/bin bin usr/sbin sbin usr/games etc/init.d}) {
index 78dddc7bfc8cc8f08b05f5e8c841bf84e05ac38c..07760cc50edd32aa914e3b1102306cff71479b7e 100755 (executable)
@@ -18,9 +18,9 @@ B<dh_installinfo> [S<I<debhelper options>>] [B<-A>] [B<-n>] [S<I<file ...>>]
 dh_installinfo is a debhelper program that is responsible for installing
 info files and registering the files it installs with install-info.
 
-It determines some information about the info files by parsing them, in
-particular, it looks at the INFO-DIR-SECTION line to determine what section
-the info file belongs in.
+Note that install-info determines some information about the info files by
+parsing them, in particular, it looks at the INFO-DIR-SECTION line to
+determine what section the info file belongs in.
 
 Any filenames specified as parameters will be installed into the first
 package dh_installinfo is told to act on. By default, this is the first
@@ -90,30 +90,10 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                # Only register with install-info if this is a head file in
                # a tree of info files.
                if ($file !~ /-\d+$/ && ! $dh{NOSCRIPTS}) {
-                       # Figure out what section this file goes in.
-                       my $section='';
-                       open (IN, "<$file") || die "$file: $!";
-                       while (<IN>) {
-                               if (/INFO-DIR-SECTION\s+(.*)/) {
-                                       $section=$1;
-                                       last;
-                               }
-                       }
-                       close IN;
-                       
                        my $fn="/usr/share/info/".basename($file);
                        
-                       if ($section ne '') {
-                               $section=~s:/:\\/:g; # allow / in section.
-                               $section=~s/\&/\\&/g; # escape sed specials
-                               $section=~s/(\\[0-9])/\\\\$1/g; # more sed specials
-                               autoscript($package,"postinst","postinst-info",
-                                       "s/#SECTION#/$section/g;s:#FILE#:$fn:");
-                       }
-                       else {
-                               autoscript($package,"postinst","postinst-info-nosection",
-                                       "s:#FILE#:$fn:");
-                       }
+                       autoscript($package,"postinst","postinst-info",
+                               "s:#FILE#:$fn:");
                        autoscript($package,"prerm","prerm-info", "s:#FILE#:$fn:");
                }
        }
diff --git a/dh_link b/dh_link
index e5413ecb77a4558c3d88e2242e5bc98ebd9ed1a7..f7a910a5a473cc483b9ce705174f08689092e47a 100755 (executable)
--- a/dh_link
+++ b/dh_link
@@ -43,7 +43,7 @@ a path as possible. It will also create any subdirectories it needs to to put
 the symlinks in.
 
 dh_link also scans the package build tree for existing symlinks which do not
-conform to debian policy, and corrects them (v4 only).
+conform to debian policy, and corrects them (v4 or later).
 
 =head1 OPTIONS
 
@@ -138,7 +138,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                error("parameters list a link without a destination.");
        }
 
-       # v4 only and only if there is a temp dir already
+       # v4 or later and only if there is a temp dir already
        if (! compat(3) && -e $tmp) {
                # Scan for existing links and add them to @links, so they
                # are recreated policy conformant.