From: Stephen Seo Date: Sat, 4 Jun 2022 07:58:18 +0000 (+0900) Subject: Ensure output pkgs dir exists on build X-Git-Url: https://git.seodisparate.com/stephenseo/js/bootstrap.bundle.min.js?a=commitdiff_plain;h=86216d4553914a10b284b69f8da7731923deccbe;p=AnotherAURHelper Ensure output pkgs dir exists on build --- diff --git a/update.py b/update.py index 47f4f2e..de908fa 100755 --- a/update.py +++ b/update.py @@ -15,6 +15,7 @@ import time import shutil import getpass import tempfile +from pathlib import Path #SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__)) SUDO_PROC = False @@ -848,6 +849,10 @@ def update_pkg_list( pkg_state[pkg]["build_status"] = "success" + log_print("Ensuring pkgs directory exists...") + if not os.path.exists(other_state['pkg_out_dir']): + pkg_out_dir_path = Path(other_state['pkg_out_dir']) + pkg_out_dir_path.mkdir(parents=True) log_print("Moving pkg to pkgs directory...") for f in pkg_list: log_print(f'Moving "{f}"...')