[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: branch: master updated (1.3.1-20080110-6-g0f8f2cb)



The branch, master has been updated
       via  0f8f2cb351e6f594b8a00f2cd447562574f1c0d2 (commit)
      from  082c6d6778d218aabd6df20a955d211335c2f43c (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.


=========
 Summary
=========

 libgeda/src/s_clib.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)


=================
 Commit Messages
=================

commit 0f8f2cb351e6f594b8a00f2cd447562574f1c0d2
Author: Werner Hoch <werner.ho@xxxxxx>
Date:   Sat Jan 12 18:37:27 2008 +0100

    forward status messages from the library command to the log
    
    The list and get command read data from stdout, thus the stderr can
    be used to catch the status messages from the library command.

:100644 100644 b72b746... f3057c7... M	libgeda/src/s_clib.c

=========
 Changes
=========

commit 0f8f2cb351e6f594b8a00f2cd447562574f1c0d2
Author: Werner Hoch <werner.ho@xxxxxx>
Date:   Sat Jan 12 18:37:27 2008 +0100

    forward status messages from the library command to the log
    
    The list and get command read data from stdout, thus the stderr can
    be used to catch the status messages from the library command.

diff --git a/libgeda/src/s_clib.c b/libgeda/src/s_clib.c
index b72b746..f3057c7 100644
--- a/libgeda/src/s_clib.c
+++ b/libgeda/src/s_clib.c
@@ -426,6 +426,8 @@ static void cache_find_oldest (gpointer key,
  *  Execute a library command, returning the standard output, or \b
  *  NULL if the command fails for some reason.  The system \b PATH is
  *  used to find the program to execute.
+ *  The command can write messages to the standard error output. They 
+ *  are forwarded to the libgeda logging mechanism.
  *
  *  Private function used only in s_clib.c.
  *
@@ -467,6 +469,10 @@ static gchar *run_source_command (const gchar *command)
     success = TRUE;
   }
 
+  /* forward library command messages */
+  if (success && standard_error != NULL)
+    s_log_message (standard_error);
+
   g_free (standard_error);
   
   if (success) return standard_output;




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs