cros_env_whitelist: rewrite in shell to avoid Python 2

The use of vpython for Python 2 is failing because vpython is being
removed entirely, even for historical branches.  We hacked up the
depot_tools wrappers to handle this, but it only works for the few
many scripts (e.g. cros_sdk).  This script runs inside & outside of
the SDK, and vpython isn't available inside the SDK.

Since the script itself is trivial and produces static content, and
will basically always produce the same content once a branch is cut,
rewrite it in a simple shell script.

BUG=b:268754243
TEST=`./cros_env_whitelist` works

Change-Id: I922bd2fef20adb7ef254cedd0bf60697fb1a64d7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/4246118
Tested-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Ram Chandrasekar <rchandrasekar@google.com>
2 files changed