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

Evergreen Git git at git.evergreen-ils.org
Tue May 24 13:45:16 EDT 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  48698adb7bb8e2e92570f22df6ab7fbcaa9b3169 (commit)
      from  a05d872a17ee05cf003ee0aa024e9cc4d76b3cdc (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 48698adb7bb8e2e92570f22df6ab7fbcaa9b3169
Author: Jason Boyer <jboyer at library.in.gov>
Date:   Thu Apr 7 12:08:09 2016 -0400

    LP1567514 - Don't Output Null Byte for Spool Files
    
    If a spool file is defined on the marc_stream_importer.pl
    command line, no null byte is output after the record(s)
    are processed.
    
    To test:
    
    [1] Use marc_stream_importer.pl to import a record from
        a file; verify that the output messages do not include
        a null character.
    
    Signed-off-by: Jason Boyer <jboyer at library.in.gov>
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>

diff --git a/Open-ILS/src/support-scripts/marc_stream_importer.pl b/Open-ILS/src/support-scripts/marc_stream_importer.pl
index 670e8c7..412d466 100755
--- a/Open-ILS/src/support-scripts/marc_stream_importer.pl
+++ b/Open-ILS/src/support-scripts/marc_stream_importer.pl
@@ -494,7 +494,7 @@ sub process_file {
     $msg .= "Successfully imported $imported $cur_rec_type records ".
         "using merge profile '$profile'\n" if $imported;
     $msg .= "Failed to import $failed $cur_rec_type records\n" if $failed;
-    $msg .= "\x00";
+    $msg .= "\x00" unless $spoolfile;
     print $msg;
 
     clear_auth_token(); # logout

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

Summary of changes:
 .../src/support-scripts/marc_stream_importer.pl    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list