[debhelper-devel] [debhelper] 01/01: dh_installinfo: Use xargs instead of doit

Niels Thykier nthykier at moszumanska.debian.org
Tue Jun 27 17:32: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 f8a3d38f9adfb277fcad6128299cb0e330c2a9fb
Author: Niels Thykier <niels at thykier.net>
Date:   Tue Jun 27 15:59:10 2017 +0000

    dh_installinfo: Use xargs instead of doit
    
    At this point, it is probably more of a theorectical issue that
    someone wants to install a large amount of "info" files via
    dh_installinfo.  Anyhow, now it is fixed.
    
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 debian/changelog | 7 +++++++
 dh_installinfo   | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index f2213ad..7dfa5d0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+debhelper (10.5.2) UNRELEASED; urgency=medium
+
+  * dh_installinfo: Use "xargs" so it works even if there are
+    "a lot" of info files.
+
+ -- Niels Thykier <niels at thykier.net>  Tue, 27 Jun 2017 17:29:32 +0000
+
 debhelper (10.5.1) unstable; urgency=medium
 
   * Dh_Lib.pm: Fix rounding error when computing how many processes
diff --git a/dh_installinfo b/dh_installinfo
index f5e7ad8..1ad277e 100755
--- a/dh_installinfo
+++ b/dh_installinfo
@@ -67,7 +67,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 
 	if (@info) {
 		install_dir("$tmp/usr/share/info");
-		doit("cp", '--reflink=auto', @info, "$tmp/usr/share/info");
+		xargs(\@info, "cp", '--reflink=auto', XARGS_INSERT_PARAMS_HERE, "$tmp/usr/share/info");
 		doit("chmod","-R", "go=rX","$tmp/usr/share/info/");
 		doit("chmod","-R", "u+rw","$tmp/usr/share/info/");
 	}

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