1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-03 14:25:37 +02:00

Fix check for existing proxy.

Change-Id: I3e6357f6f9671a2c411b873169d73041442285c3
Signed-off-by: Watson, Gregory <g.watson@computer.org>
This commit is contained in:
Watson, Gregory 2017-01-18 21:49:50 -05:00
parent fa3fe15cab
commit ac2830953d
2 changed files with 3 additions and 3 deletions

View file

@ -52,11 +52,11 @@ do_check() {
echo fail:system not supported;
return;;
esac
proxy=no
proxy=not_found
if test -d $proxydir; then
bundle="org.eclipse.remote.proxy.server.core_$1.jar"
if test -f $plugins/$bundle; then
proxy=yes
proxy=found
else
mv $proxydir $proxydir.pre_$1
fi

View file

@ -141,7 +141,7 @@ public class ProxyConnectionBootstrap {
String[] status = parts[1].split("/"); //$NON-NLS-1$
context.setOSName(status[1]);
context.setOSArch(status[2]);
context.setState(status[0].equals("proxy") ? States.START : States.DOWNLOAD); //$NON-NLS-1$
context.setState(status[0].equals("found") ? States.START : States.DOWNLOAD); //$NON-NLS-1$
return true;
case "fail": //$NON-NLS-1$
context.setErrorMessage(parts[1]);