File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -358,6 +358,12 @@ else
358
358
new_easystacks=$( echo " ${changed_easystacks} " | (grep -v " /rebuilds/" || true))
359
359
for easystack_file in ${rebuild_easystacks} ${new_easystacks} ; do
360
360
361
+ # make sure that easystack file being picked up is for EESSI version that we're building for...
362
+ echo " ${easystack_file} " | grep -q " ^easystacks/${EESSI_VERSION} /"
363
+ if [ $? -ne 0 ]; then
364
+ fatal_error " Easystack file ${easystack_file} is not intended for EESSI version ${EESSI_VERSION} , giving up!"
365
+ fi
366
+
361
367
echo -e " Processing easystack file ${easystack_file} ...\n\n"
362
368
363
369
# determine version of EasyBuild module to load based on EasyBuild version included in name of easystack file
Original file line number Diff line number Diff line change 9
9
10
10
version=$1
11
11
12
- SOFTWARE_LAYER_TARBALL_URL =" https://github.com/EESSI/software-layer/tarball/${version} -software.eessi.io "
12
+ SOFTWARE_LAYER_SCRIPTS_TARBALL_URL =" https://github.com/EESSI/software-layer-scripts /tarball/main "
13
13
14
14
TOPDIR=$( dirname $( realpath $0 ) )
15
15
26
26
tartmp=$( mktemp -t -d init.XXXXX)
27
27
mkdir " ${tartmp} /${version} "
28
28
tarname=" eessi-${version} -init-$( date +%s) .tar.gz"
29
- curl -Ls ${SOFTWARE_LAYER_TARBALL_URL } | tar xzf - -C " ${tartmp} /${version} " --strip-components=1 --no-wildcards-match-slash --wildcards ' */init/'
29
+ curl -Ls ${SOFTWARE_LAYER_SCRIPTS_TARBALL_URL } | tar xzf - -C " ${tartmp} /${version} " --strip-components=1 --no-wildcards-match-slash --wildcards ' */init/'
30
30
source " ${tartmp} /${version} /init/minimal_eessi_env"
31
31
if [ " ${EESSI_VERSION} " != " ${version} " ]
32
32
then
@@ -42,7 +42,7 @@ echo_green "Done! Created tarball ${tarname}."
42
42
tartmp=$( mktemp -t -d scripts.XXXXX)
43
43
mkdir " ${tartmp} /${version} "
44
44
tarname=" eessi-${version} -scripts-$( date +%s) .tar.gz"
45
- curl -Ls ${SOFTWARE_LAYER_TARBALL_URL } | tar xzf - -C " ${tartmp} /${version} " --strip-components=1 --no-wildcards-match-slash --wildcards ' */scripts/'
45
+ curl -Ls ${SOFTWARE_LAYER_SCRIPTS_TARBALL_URL } | tar xzf - -C " ${tartmp} /${version} " --strip-components=1 --no-wildcards-match-slash --wildcards ' */scripts/'
46
46
tar czf " ${tarname} " -C " ${tartmp} " " ${version} "
47
47
rm -rf " ${tartmp} "
48
48
You can’t perform that action at this time.
0 commit comments