mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-26 16:11:56 +02:00
Calling portageq is fairly slow, so only call it when required, and combine the multiple calls into a single one. In some cases, we'd end up calling it multiple times which quickly multiplies the slowness. BUG=None TEST=`./cros_workon --board x86-alex start dtc` still works TEST=`./cros_workon --board x86-alex list` still works and is fast TEST=`./cros_workon --board x86-alex stop dtc` still works Change-Id: I6ac6ba283c6529384a7981ad4fffa480bae52234 Reviewed-on: https://gerrit.chromium.org/gerrit/18400 Commit-Ready: Mike Frysinger <vapier@chromium.org> Reviewed-by: Mike Frysinger <vapier@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org>
Description
Languages
Shell
93.1%
Python
6.9%