[debhelper-devel] [debhelper] 01/01: dh_installdocs: Merge two doit('chmod', ...) calls

Niels Thykier nthykier at moszumanska.debian.org
Sun Aug 13 10:47:17 UTC 2017


This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository debhelper.

commit 07152107810441152bdb4417522f5b3387e3c0c9
Author: Niels Thykier <niels at thykier.net>
Date:   Sun Aug 13 10:46:26 2017 +0000

    dh_installdocs: Merge two doit('chmod',...) calls
    
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 debian/changelog | 1 +
 dh_installdocs   | 3 +--
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 90d645c..c4a6798 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -31,6 +31,7 @@ debhelper (10.7.3) UNRELEASED; urgency=medium
   * dh_installdeb: Stop emitting versioned Pre-Depends on dpkg for
     symlink_to_dir and dir_to_symlink maintscripts.  The version
     requirements are satisfied in oldoldstable.
+  * dh_installdocs: Merge two chmod calls to save a fork+exec.
 
  -- Niels Thykier <niels at thykier.net>  Thu, 03 Aug 2017 19:30:01 +0000
 
diff --git a/dh_installdocs b/dh_installdocs
index a94796e..06da53b 100755
--- a/dh_installdocs
+++ b/dh_installdocs
@@ -271,8 +271,7 @@ foreach my $package (getpackages()) {
 			}
 		}
 		doit("chown","-R","0:0","$tmp/usr/share/doc");
-		doit("chmod","-R","go=rX","$tmp/usr/share/doc");
-		doit("chmod","-R","u+rw","$tmp/usr/share/doc");
+		doit("chmod","-R","u+rw,go=rX","$tmp/usr/share/doc");
 	}
 
 	# .Debian is correct, according to policy, but I'm easy.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git




More information about the debhelper-devel mailing list