[dpkg] 22/187: build: Print an actual newline instead of a literal \n in lcov output

Reiner Herrmann reiner at reiner-h.de
Sun Nov 6 12:46:19 UTC 2016


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

deki-guest pushed a commit to branch master
in repository dpkg.

commit ca9b5c65112fadd794d953f6daf72f0ff26cd175
Author: Guillem Jover <guillem at debian.org>
Date:   Sun Oct 16 16:03:02 2016 +0200

    build: Print an actual newline instead of a literal \n in lcov output
---
 debian/changelog   | 1 +
 doc/lcov-inject.pl | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index cf748f7..391c477 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -26,6 +26,7 @@ dpkg (1.18.11) UNRELEASED; urgency=medium
     - Use builddir instead of CURDIR in man Makefile.am.
     - Use cp with -R instead of -r (the former is more portable and not
       marked as deprecated by POSIX).
+    - Print an actual newline instead of a literal \n in lcov output.
 
   [ Updated manpages translations ]
   * German (Helge Kreutzmann).
diff --git a/doc/lcov-inject.pl b/doc/lcov-inject.pl
index 5ba8e44..a74c801 100755
--- a/doc/lcov-inject.pl
+++ b/doc/lcov-inject.pl
@@ -90,7 +90,7 @@ sub box_rating {
 sub box_html {
     my ($stats) = @_;
 
-    return sprintf '<td class="coverPer%s">%.1f %%</td>\n' .
+    return sprintf '<td class="coverPer%s">%.1f %%</td>' . "\n" .
                    '<td class="coverNum%s">%d / %d</td>',
         box_rating($stats->{percentage}), $stats->{percentage},
         box_rating($stats->{percentage}), $stats->{covered}, $stats->{total};

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



More information about the Reproducible-commits mailing list