aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-02-23 18:46:04 +0000
committerJoshua Lock <josh@linux.intel.com>2010-02-26 13:07:59 +0000
commit3ace3656c0061f52cb2af4b887eb74f3b8e7e815 (patch)
treeeb235d6779bf21a2365a2d2a1d81ab99d6db365f
parentb5d2bd857338018832a788bd6448dd69b970ba3e (diff)
downloadanjuta-poky-3ace3656c0061f52cb2af4b887eb74f3b8e7e815.tar.gz
anjuta-poky-3ace3656c0061f52cb2af4b887eb74f3b8e7e815.tar.bz2
anjuta-poky-3ace3656c0061f52cb2af4b887eb74f3b8e7e815.zip
Try to emphasise when rsync is missing on the target.
Add a strrstr() call in deploy_launcher_data_cb() for "rsync: not found" so that we can give the user a slightly easier to nitice warning for this case as requested by Richard. Signed-off-by: Joshua Lock <josh@linux.intel.com>
-rw-r--r--src/plugin.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/plugin.c b/src/plugin.c
index dfc43bb..5830e2c 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -206,7 +206,20 @@ deploy_launcher_data_cb (AnjutaLauncher *launcher,
AnjutaPluginSdk *sp = (AnjutaPluginSdk *)userdata;
GError *error = NULL;
- if (sp->deploy_msg_view)
+ if (g_strrstr(chars, "rsync: not found") && sp->deploy_msg_view)
+ {
+ ianjuta_message_view_append (sp->deploy_msg_view,
+ IANJUTA_MESSAGE_VIEW_TYPE_ERROR,
+ "Rsync missing on target",
+ "Try using an sdk image or installing rsync",
+ &error);
+ if (error)
+ {
+ g_warning ("Error appending to message view: %s", error->message);
+ g_clear_error (&error);
+ }
+ }
+ else if (sp->deploy_msg_view)
{
/* Append to the buffer for the message view to deal with the newlines */
ianjuta_message_view_buffer_append (sp->deploy_msg_view, chars, &error);