[Pkg-privacy-commits] [msva-perl] 269/356: msva-query-agent only append newline to msg output if tty
Ximin Luo
infinity0 at moszumanska.debian.org
Mon Aug 24 07:42:04 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 a328802a5ae079e6f6c69df55fdcd77d4e11df6c
Author: Jameson Rollins <jrollins at finestructure.net>
Date: Sat Dec 25 20:56:17 2010 -0500
msva-query-agent only append newline to msg output if tty
msva-query-agent will now only append a newline to the msva return
message on stdout if there is a TTY. This allows calling processes
that would like to capture the stdout to not have to deal with the
newline, which is not actually a part of the original message anyway.
---
msva-query-agent | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/msva-query-agent b/msva-query-agent
index e4e0a68..63f9e85 100755
--- a/msva-query-agent
+++ b/msva-query-agent
@@ -51,7 +51,8 @@ $client->log('info', "status: %s\n", $status);
if (defined $ret) {
$client->log('info', "valid: %s\n", $ret->{valid});
$client->log('info', "server: %s\n", $ret->{server});
- printf("%s\n", $ret->{message});
+ 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