mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-06 15:55:47 +02:00
Fix check for existing proxy.
Change-Id: I3e6357f6f9671a2c411b873169d73041442285c3 Signed-off-by: Watson, Gregory <g.watson@computer.org>
This commit is contained in:
parent
fa3fe15cab
commit
ac2830953d
2 changed files with 3 additions and 3 deletions
|
@ -52,11 +52,11 @@ do_check() {
|
||||||
echo fail:system not supported;
|
echo fail:system not supported;
|
||||||
return;;
|
return;;
|
||||||
esac
|
esac
|
||||||
proxy=no
|
proxy=not_found
|
||||||
if test -d $proxydir; then
|
if test -d $proxydir; then
|
||||||
bundle="org.eclipse.remote.proxy.server.core_$1.jar"
|
bundle="org.eclipse.remote.proxy.server.core_$1.jar"
|
||||||
if test -f $plugins/$bundle; then
|
if test -f $plugins/$bundle; then
|
||||||
proxy=yes
|
proxy=found
|
||||||
else
|
else
|
||||||
mv $proxydir $proxydir.pre_$1
|
mv $proxydir $proxydir.pre_$1
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -141,7 +141,7 @@ public class ProxyConnectionBootstrap {
|
||||||
String[] status = parts[1].split("/"); //$NON-NLS-1$
|
String[] status = parts[1].split("/"); //$NON-NLS-1$
|
||||||
context.setOSName(status[1]);
|
context.setOSName(status[1]);
|
||||||
context.setOSArch(status[2]);
|
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;
|
return true;
|
||||||
case "fail": //$NON-NLS-1$
|
case "fail": //$NON-NLS-1$
|
||||||
context.setErrorMessage(parts[1]);
|
context.setErrorMessage(parts[1]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue