[lokisetup] setup.sh problem
Stephane Peter
megastep at megastep.org
Thu Apr 3 17:45:09 EST 2003
On Thu, 2003-04-03 at 09:00, John Quigley wrote:
> The current setup.sh script tries to launch setup.gtk, and if that program
> fails and returns 2, it runs the console setup program. However, if setup.gtk
> fails because a dynamic library (e.g.: gtk) is missing, it will set $? to 127
> (on my system). Thus the console program won't run and the install will fail.
> This can happen if, for instance, you are running the installer
> on a machine without a complete windowing system.
>
> I changed it as listed below, and it seems to work. Setup will return 3 if it is
> aborted, in that case we don't want to run console installer.
> I guess I could instead add a check for 127, but I'm not sure if all dynamic
> loaders will return that...
OK, I have just committed a very similar patch. Let me know if there are
any problems. Finding the right logic for this script has been quite an
exercise...
--
Stephane Peter
Sr. Software Engineer
Codehost, Inc.
More information about the Lokisetup
mailing list