Move Retry* functions to chromite.lib.retry_util.
BUG=none
TEST=All unit tests. Paladin and release trybot runs.
TEST=git grep for moved functions
TEST=repo grep for moved functions. The only library still referencing
them is the signer, which is pinned to an older version of chromite.
Change-Id: I11a5a2c641e0015165ce003022232941d775035d
Reviewed-on: https://chromium-review.googlesource.com/182331
Reviewed-by: Matt Tennant <mtennant@chromium.org>
Commit-Queue: David James <davidjames@chromium.org>
Tested-by: David James <davidjames@chromium.org>
diff --git a/scripts/gs_fetch_binpkg.py b/scripts/gs_fetch_binpkg.py
index cce796f..372ce37 100644
--- a/scripts/gs_fetch_binpkg.py
+++ b/scripts/gs_fetch_binpkg.py
@@ -19,6 +19,7 @@
from chromite.lib import cros_build_lib
from chromite.lib import gs
from chromite.lib import osutils
+from chromite.lib import retry_util
def GetParser():
@@ -43,8 +44,8 @@
options = parser.parse_args(argv)
ctx = gs.GSContext(retries=0)
try:
- cros_build_lib.RetryCommand(Copy, ctx.DEFAULT_RETRIES, ctx, options.uri,
- options.filename, sleep=ctx.DEFAULT_SLEEP_TIME)
+ retry_util.RetryCommand(Copy, ctx.DEFAULT_RETRIES, ctx, options.uri,
+ options.filename, sleep=ctx.DEFAULT_SLEEP_TIME)
except (gs.GSContextException, cros_build_lib.RunCommandError) as ex:
# Hide the stack trace using Die.
cros_build_lib.Die('%s', ex)