aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2024-02-16 03:26:04 -0500
committerJoshua M. Boniface <joshua@boniface.me>2024-02-16 03:26:04 -0500
commitb0bb61839efa47a1ae57415bae04a74a9aecb41b (patch)
tree711e1eb1befa5a7c57e0bc5e1a6c39d8139e7ed7
parentAdd comments to .gitignore (diff)
downloadjellyfin-packaging-b0bb61839efa47a1ae57415bae04a74a9aecb41b.tar.gz
jellyfin-packaging-b0bb61839efa47a1ae57415bae04a74a9aecb41b.tar.bz2
jellyfin-packaging-b0bb61839efa47a1ae57415bae04a74a9aecb41b.zip
Ensure submodule update errors aren't fatal
Simply retry them.
-rwxr-xr-xcheckout.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/checkout.py b/checkout.py
index 9e1c6d0..ab9d970 100755
--- a/checkout.py
+++ b/checkout.py
@@ -25,7 +25,13 @@ revparse_dir = revparse.stdout.decode().strip()
this_repo = Repo(revparse_dir)
# Update all the submodules
-this_repo.submodule_update(recursive=True)
+while True:
+ try:
+ this_repo.submodule_update(init=True, recursive=True)
+ break
+ except Exception as e:
+ print(e)
+ pass
# Prepare a dictionary form of the submodules so we can reference them by name
submodules = dict()
bgstack15