fix: use same for loop for both subdir stuff
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
Darragh Elliott
2025-06-28 09:46:52 +01:00
parent 03f3139d63
commit 869d384079

View File

@@ -121,14 +121,6 @@ def main():
pool,
)
# Early subdirs
# for subdir actions that need to be performed very early in the build process. Do not get access to languages to be built in, and other benefits of being ran later.
for site in args.sites:
prepare_early_subdirectories(
site,
args.processes,
)
stage_required = any(
[args.stage, "@" in args.target, ":" in args.target, "," in args.target]
)
@@ -139,6 +131,12 @@ def main():
if not site.exists():
logger.critical(f"Site {site} does not exist, exiting")
sys.exit(1)
# Early subdirs
# for subdir actions that need to be performed very early in the build process. Do not get access to languages to be built in, and other benefits of being ran later.
prepare_early_subdirectories(
site,
args.processes,
)
languages = (
args.languages
if args.languages