Chromium Code Reviews
Description[vpython] Fix intolerant lookup logic.
The old probe-based Python lookup will return an error if any single
candidate Python could not be identified. This prevents fallthrough,
e.g., "python2.7" => "python2" => "python" will fail error on
"python2.7" being missing.
Refactor the lookup function a bit to be more tolerant of lookup errors.
It should now try all candidate Python names and only fail if none of
them matched.
BUG=None
TEST=local
R=iannucci@chromium.org, qyearsley@chromium.org
Review-Url: https://codereview.chromium.org/2943513002
Committed: https://github.com/luci/luci-go/commit/d9f6561f4b6d29a16f889ad4f6f2898c5794303a
Patch Set 1 #
Dependent Patchsets: Messages
Total messages: 9 (4 generated)
|
|||||||||||||||||||