[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 04/04: L::I::FrontUtils: Pass options to safe_qx



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

nthykier pushed a commit to branch master
in repository lintian.

commit f4c6aee4841d62f2c15857892665a0af5ba5d151
Author: Niels Thykier <niels@thykier.net>
Date:   Wed Jan 20 22:27:45 2016 +0000

    L::I::FrontUtils: Pass options to safe_qx
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 lib/Lintian/Internal/FrontendUtil.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Lintian/Internal/FrontendUtil.pm b/lib/Lintian/Internal/FrontendUtil.pm
index 7ebb04b..400f9a5 100644
--- a/lib/Lintian/Internal/FrontendUtil.pm
+++ b/lib/Lintian/Internal/FrontendUtil.pm
@@ -132,7 +132,7 @@ sub load_collections {
 sub default_parallel {
     # check cpuinfo for the number of cores...
     my %opts = ('err' => '&1');
-    my $cpus = safe_qx('nproc');
+    my $cpus = safe_qx(\%opts, 'nproc');
     if ($? == 0 and $cpus =~ m/^\d+$/) {
         # Running up to twice the number of cores usually gets the most out
         # of the CPUs and disks but it might be too aggressive to be the

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


Reply to: