[Pkg-privacy-commits] [msva-perl] 277/356: remove trailing newline entirely from query-agent message output to stdout

Ximin Luo infinity0 at moszumanska.debian.org
Mon Aug 24 07:42:05 UTC 2015


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

infinity0 pushed a commit to branch debian
in repository msva-perl.

commit daa2fca2f69126676f7ba287441cd50c77f211c9
Author: Jameson Rollins <jrollins at finestructure.net>
Date:   Thu Dec 30 13:15:02 2010 -0500

    remove trailing newline entirely from query-agent message output to stdout
    
    This goes a step further than a328802a (which only output newline to
    terminals) to just remove the extra newline altogether.  It is not
    part of the original message, and query-agent is meant to me mostly
    used in pipeline anyway where the stdout is captured by another
    calling process.
---
 msva-query-agent | 2 --
 1 file changed, 2 deletions(-)

diff --git a/msva-query-agent b/msva-query-agent
index 3ba8e2a..62e291a 100755
--- a/msva-query-agent
+++ b/msva-query-agent
@@ -36,7 +36,6 @@ if ($context eq '--help') {
   $client->log('verbose', "status: %s\n", $status);
   if (defined $ret) {
     printf("%s", $ret->{server});
-    printf("\n") if (-t STDOUT);
     exit 0;
   }
   exit 1;
@@ -67,7 +66,6 @@ if (defined $ret) {
   $client->log('info', "valid: %s\n", $ret->{valid});
   $client->log('info', "server: %s\n", $ret->{server});
   printf("%s", $ret->{message});
-  printf("\n") if (-t STDOUT);
   exit 0
     if ($ret->{valid});
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/msva-perl.git



More information about the Pkg-privacy-commits mailing list