[debhelper-devel] [debhelper] 01/01: dh_installman: Fix mode and avoid chown call

Niels Thykier nthykier at moszumanska.debian.org
Sun Jun 4 11:11:05 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 f93e542211fb002965b4f110672b022596e5ac42
Author: Niels Thykier <niels at thykier.net>
Date:   Sun Jun 4 11:05:32 2017 +0000

    dh_installman: Fix mode and avoid chown call
    
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 debian/changelog | 9 +++++++++
 dh_installman    | 2 +-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index db49925..5182ea7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+debhelper (10.5) UNRELEASED; urgency=medium
+
+  * dh_installman: Remove unncessary "chown" call that made things a
+    lot slower.  Thanks to Kurt Roeckx for reporting it.
+  * dh_installman: Fix wrong permission of man pages (set 0755 instead
+    of 0644).  Regression introduced in 10.2.2.
+
+ -- Niels Thykier <niels at thykier.net>  Sun, 04 Jun 2017 11:09:56 +0000
+
 debhelper (10.4) experimental; urgency=medium
 
   * Team upload.
diff --git a/dh_installman b/dh_installman
index 7ae605e..0f29f3c 100755
--- a/dh_installman
+++ b/dh_installman
@@ -240,7 +240,7 @@ foreach my $package (getpackages()) {
 				complex_doit "man --recode UTF-8 ./\Q$orig\E > \Q$tmp\E";
 				# recode uncompresses compressed pages
 				doit "rm", "-f", $orig if s/\.(gz|Z)$//;
-				reset_perm_and_owner('0755', $tmp);
+				doit('chmod', '0644', $tmp);
 				doit "mv", "-f", $tmp, $_;
 			}, "$tmp/$dir");
 		}

-- 
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