Skip to content

Commit 3564554

Browse files
author
Alan O'Cais
committed
Clean the easyconfigs before copying them.
1 parent 17003cc commit 3564554

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

easybuild/main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747

4848
from easybuild.framework.easyblock import build_and_install_one, inject_checksums
4949
from easybuild.framework.easyconfig import EASYCONFIGS_PKG_SUBDIR
50+
from easybuild.framework.easyconfig.easyconfig import clean_up_easyconfigs
5051
from easybuild.framework.easyconfig.easyconfig import fix_deprecated_easyconfigs, verify_easyconfig_filename
5152
from easybuild.framework.easyconfig.style import cmdline_easyconfigs_style_check
5253
from easybuild.framework.easyconfig.tools import categorize_files_by_type, dep_graph
@@ -426,6 +427,8 @@ def main(args=None, logfile=None, do_build=None, testing=False, modtool=None):
426427
tweaked_ecs_in_all_ecs = [path for path in all_specs if
427428
any(tweaked_ecs_path in path for tweaked_ecs_path in tweaked_ecs_paths)]
428429
if tweaked_ecs_in_all_ecs:
430+
# Clean them, then copy them
431+
clean_up_easyconfigs(tweaked_ecs_in_all_ecs)
429432
copy_files(tweaked_ecs_in_all_ecs, target_path)
430433
print_msg("%d file(s) copied to %s" % (len(tweaked_ecs_in_all_ecs), target_path), prefix=False)
431434

0 commit comments

Comments
 (0)