[open-ils-commits] [GIT] Evergreen ILS branch master updated. da50743460e966dbbb07e1a19849905adafe7813

Evergreen Git git at git.evergreen-ils.org
Mon Feb 1 01:37:43 EST 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  da50743460e966dbbb07e1a19849905adafe7813 (commit)
      from  ea474a9eafd5093f9440328c907809d3715b74f1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit da50743460e966dbbb07e1a19849905adafe7813
Author: Jason Stephenson <jstephenson at mvlc.org>
Date:   Thu Jan 28 08:55:22 2016 -0500

    LP#1539088: marc_export prints "Waiting for input" when non-interactive
    
    This commit modifies marc_export to only print "Waiting for input"
    when run in an interactive manner.  This suppresses the output when
    run from a pipe.
    
    To test this change:
    
    Before the commit is applied both of the following command lines will
    output "Waiting for input" to standard error:
    
    $ marc_export --format XML
    
    $ echo <bibid> | marc_export --format XML
    
    Where you replace <bibid> with a bibliographic record entry id from
    your database.
    
    After the commit is applied, only the first command line will output
    the "Waiting for input" message.
    
    Signed-off-by: Jason Stephenson <jstephenson at mvlc.org>
    Signed-off-by: Ben Shum <ben at evergreener.net>

diff --git a/Open-ILS/src/support-scripts/marc_export.in b/Open-ILS/src/support-scripts/marc_export.in
index 5b5ff9c..f894e57 100755
--- a/Open-ILS/src/support-scripts/marc_export.in
+++ b/Open-ILS/src/support-scripts/marc_export.in
@@ -34,7 +34,7 @@ Fieldmapper->import(IDL => $config->option_value('xml-idl'));
 # Look for passed in ids:
 my @ids = ();
 if ($config->need_ids()) {
-    print STDERR "Waiting for input\n";
+    print STDERR "Waiting for input\n" if (-t);
     while (my $i = <>) {
         push @ids, $i if ($i =~ /^\s*[0-9]+\s*$/);
     }

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/support-scripts/marc_export.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list