cros_sdk: always use local copy of depot_tools
We could convert all call sites inside of the chroot to use the new
path, but for now, just change this single entry point.
BUG=chromium:403221
TEST=`./cbuildbot/run_tests` passes
TEST=`cros_sdk` mounts local copy of depot_tools into /mnt/host/depot_tools
Change-Id: I90303d68de45f1b31d6c1298e6a3dda630593ba6
Reviewed-on: https://chromium-review.googlesource.com/212212
Reviewed-by: Alex Vakulenko <avakulenko@chromium.org>
Reviewed-by: Alex Deymo <deymo@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
diff --git a/scripts/cros_sdk.py b/scripts/cros_sdk.py
index 1192ebd..56aae04 100644
--- a/scripts/cros_sdk.py
+++ b/scripts/cros_sdk.py
@@ -204,9 +204,7 @@
# Pass in the path to the depot_tools so that users can access them from
# within the chroot.
- depot_tools = osutils.FindDepotTools()
- if depot_tools:
- cmd += ['DEPOT_TOOLS=%s' % depot_tools]
+ cmd += ['DEPOT_TOOLS=%s' % constants.DEPOT_TOOLS_DIR]
return cmd