diff --git a/upstream_utils/update_mpack.py b/upstream_utils/update_mpack.py index 017ba60d63e..974587dc872 100755 --- a/upstream_utils/update_mpack.py +++ b/upstream_utils/update_mpack.py @@ -3,6 +3,7 @@ import os import shutil import subprocess +import tempfile from upstream_utils import ( get_repo_root, @@ -40,9 +41,9 @@ def clone(url, tag): subprocess.run(["git", "switch", "--detach", tag]) def main(): + wpilib_root = get_repo_root() clone("https://github.com/ludocode/mpack", "v1.1.1") upstream_root = os.getcwd() - wpilib_root = get_repo_root() wpiutil = os.path.join(wpilib_root, "wpiutil") # Apply patches to upstream Git repo