devserver: Deprecate --prox_port
This option doesn't seem to be used anywhere. It seems it was being used
for testing updates locally, but we don't do that anymore.
BUG=chromium:872441
TEST=devserver_integration_test.py
Change-Id: I969609b4ae8ce12394696285f41b437567bf33bd
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/dev-util/+/2121398
Tested-by: Amin Hassani <[email protected]>
Reviewed-by: Sanika Kulkarni <[email protected]>
Reviewed-by: Allen Li <[email protected]>
Commit-Queue: Amin Hassani <[email protected]>
diff --git a/devserver.py b/devserver.py
index 34b5043..61da0cf 100755
--- a/devserver.py
+++ b/devserver.py
@@ -1512,13 +1512,6 @@
group.add_option('--exit',
action='store_true',
help='do not start the server (yet clear cache)')
- group.add_option('--proxy_port',
- metavar='PORT', default=None, type='int',
- help='port to have the client connect to -- basically the '
- 'devserver lies to the update to tell it to get the payload '
- 'from a different port that will proxy the request back to '
- 'the devserver. The proxy must be managed outside the '
- 'devserver.')
parser.add_option_group(group)
@@ -1634,11 +1627,7 @@
# We allow global use here to share with cherrypy classes.
# pylint: disable=W0603
global updater
- updater = autoupdate.Autoupdate(
- _xbuddy,
- static_dir=options.static_dir,
- proxy_port=options.proxy_port,
- )
+ updater = autoupdate.Autoupdate(_xbuddy, static_dir=options.static_dir)
if options.exit:
return