Package: lcov
Version: 1.8-1
Severity: normal
Tags: patch

Hi!

The lcov program parses the --no-recursion argument, but it does not
forward it to the geninfo program, which makes the latter scan all
subdirectories of a given path by default.

The attached patch fixes this.

regards,
guillem
>From 23192ab34e689400146a4032b8b0abbd0e69888f Mon Sep 17 00:00:00 2001
From: Guillem Jover <guil...@hadrons.org>
Date: Wed, 7 Jul 2010 12:54:11 +0200
Subject: [PATCH] Forward --no-recursion from lcov to geninfo

---
 bin/lcov |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/bin/lcov b/bin/lcov
index bdf141e..259e6ad 100755
--- a/bin/lcov
+++ b/bin/lcov
@@ -763,6 +763,10 @@ sub lcov_geninfo(@)
 	{
 		@param = (@param, "--base-directory", $base_directory);
 	}
+	if ($no_recursion)
+	{
+		@param = (@param, "--no-recursion");
+	}
 	if ($no_compat_libtool)
 	{
 		@param = (@param, "--no-compat-libtool");
-- 
1.7.1

Reply via email to