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:
parent
fa3fe15cab
commit
ac2830953d
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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]);
|
||||
|
|
Loading…
Add table
Reference in a new issue