LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File loki_setup-exitcode.diff of Package loki_setup (Project games:tools)

Index: loki_setup/image/setup.sh
===================================================================
--- loki_setup.orig/image/setup.sh
+++ loki_setup/image/setup.sh
@@ -295,13 +295,13 @@ fi
 # Try to run the setup program - first look for a GTK2 binary
 try_run setup.gtk2 $args $* 2> /dev/null
 status=$?
-if [ $status -ne 0 ] && [ $status -ne 2 ] ; then 
+if [ $status -ne 0 ] && [ $status -ne 2 ] && [ $status -ne 3 ]; then 
 	try_run setup.gtk $args $* 
 	status=$?
-	if [ $status -ne 0 ] && [ $status -ne 2 ] ; then  # setup.gtk couldn't connect to X11 server - ignore
+	if [ $status -ne 0 ] && [ $status -ne 2 ] && [ $status -ne 3 ]; then  # setup.gtk couldn't connect to X11 server - ignore
 		try_run setup $args $*
 		status=$?
-		if [ $status -ne 0 ] && [ $status -ne 2 ]; then
+		if [ $status -ne 0 ] && [ $status -ne 2 ] && [ $status -ne 3 ]; then
 			echo "The setup program seems to have failed on $arch/$libc"
 			echo
 			echo $FATAL_ERROR