commit | b0dfe557cf1b6366f35b8b88746c75a06bb5aa83 | [log] [tgz] |
---|---|---|
author | joychen <[email protected]> | Tue Jul 30 17:02:06 2013 |
committer | ChromeBot <[email protected]> | Thu Aug 01 20:22:57 2013 |
tree | 0c534c23a7e0143e441d133dc937b0ff129a4a38 | |
parent | 7c2054ae50f6980f50eb9604c3b610640b889808 [diff] [blame] |
XBuddy path rewrites. Set up default path rewrites. Rewrites can be overridden by changing xbuddy_lookup_table.py BUG=chromium:265917 TEST=manual Attempt some of the default lookup paths defined in xbuddy_lookup_table.py. http://host:port/xbuddy/ --> serves latest local test image if it exists http://host:port/xbuddy/ld --> serves latest local dev image if it exists http://host:port/xbuddy/stable-update http://host:port/xbuddy/paladin Change-Id: I925ba37f3bfe6e61675aa35e0d89b837c8d5f0f3 Reviewed-on: https://gerrit.chromium.org/gerrit/63772 Commit-Queue: Joy Chen <[email protected]> Reviewed-by: Joy Chen <[email protected]> Tested-by: Joy Chen <[email protected]>
diff --git a/devserver.py b/devserver.py index 6a35cfc..259b1a2 100755 --- a/devserver.py +++ b/devserver.py
@@ -789,6 +789,9 @@ The HTTP request should contain the standard Omaha-style XML blob. The URL line may contain an additional intermediate path to the update payload. + Paths that can be handled by xbuddy are formatted: + http://myhost/update/xbuddy/board/version + Example: http://myhost/update/optional/path/to/payload """ @@ -1072,8 +1075,10 @@ return _xbuddy = xbuddy.XBuddy(options.xbuddy_manage_builds, + options.board, root_dir=root_dir, - static_dir=options.static_dir) + static_dir=options.static_dir, + ) dev_server = DevServerRoot(_xbuddy) cherrypy.quickstart(dev_server, config=_GetConfig(options))