[anjuta] build-basic-autotools: Fix rh#707734 - Remove reference to non-existing scratchbox option



commit e0720f2c95e2491642f08120260783fc16ae3314
Author: Johannes Schmid <jhs gnome org>
Date:   Wed May 25 23:10:28 2011 +0200

    build-basic-autotools: Fix rh#707734 - Remove reference to non-existing scratchbox option

 plugins/build-basic-autotools/executer.c |   18 ++----------------
 1 files changed, 2 insertions(+), 16 deletions(-)
---
diff --git a/plugins/build-basic-autotools/executer.c b/plugins/build-basic-autotools/executer.c
index a1f2be2..65900ac 100644
--- a/plugins/build-basic-autotools/executer.c
+++ b/plugins/build-basic-autotools/executer.c
@@ -34,9 +34,6 @@
 
 #include "executer.h"
 
-#define PREF_USE_SB "build.use_scratchbox"
-#define PREF_SB_PATH "build.scratchbox.path"
-
 static gboolean
 get_program_parameters (BasicAutotoolsPlugin *plugin,
 						const gchar *pre_select_uri,
@@ -375,19 +372,8 @@ execute_program (BasicAutotoolsPlugin* plugin, const gchar *pre_select_uri)
 	else
 		cmd = g_strdup (target);
 
-	if (g_settings_get_boolean (settings, PREF_USE_SB))
-	{
-		const gchar* sb_path = g_settings_get_string (settings, PREF_SB_PATH);
-		/* we need to skip the /scratchbox/users part, maybe could be done more clever */
-		const gchar* real_dir = strstr(target, "/home");
-		gchar* oldcmd = cmd;
-		cmd = g_strdup_printf("%s/login -d %s \"%s\"", sb_path,
-									  real_dir, oldcmd);
-		g_free(oldcmd);
-		dir = g_strdup(real_dir);
-	}
-	else
-		dir = g_path_get_dirname (target);
+	dir = g_path_get_dirname (target);
+
 	if (run_in_terminal)
 	{
 		IAnjutaTerminal *term;



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