[lintian] 02/02: generate-tag-summary: Do not emit summary line without any changes
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit 500fb78d21aa695f5279dae10b35a6a6c4460fce
Author: Niels Thykier <niels@thykier.net>
Date: Mon Nov 16 20:56:33 2015 +0100
generate-tag-summary: Do not emit summary line without any changes
Signed-off-by: Niels Thykier <niels@thykier.net>
---
private/generate-tag-summary | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/private/generate-tag-summary b/private/generate-tag-summary
index fa750fc..68c0fb2 100755
--- a/private/generate-tag-summary
+++ b/private/generate-tag-summary
@@ -89,7 +89,9 @@ if ($opt{'in-place'}) {
sub emit_tag_summary {
my ($fd) = @_;
- print {$fd} " * Summary of tag changes:\n";
+ if (%added or %removed) {
+ print {$fd} " * Summary of tag changes:\n";
+ }
if (%added) {
print {$fd} " + Added:\n";
for my $tag (sort(keys(%added))) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: