Skip to content

Commit

Permalink
also fix check for unpacked source tarball in create_source_tarball.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
boegel committed Jun 12, 2024
1 parent 738a6af commit 1b7d1bb
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions scripts/create_source_tarball.sh
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,17 @@ fi

# sanity checks on source tarball
cd $tmpdir; tar xfz $cwd/$sdist_tar_gz; cd - > /dev/null
unpacked_sdist=$tmpdir/${repo_underscore}-${version}
echo -n ">> checking for unpacked source tarball at $unpacked_sdist ... "
if [ -d $unpacked_sdist ]; then
ok
else
error "Expected unpacked source tarball at $unpacked_sdist, not found!"
for unpacked_sdist in $tmpdir/${repo_underscore}-${version} $tmpdir/${repo}-${version}; do
echo -n ">> checking for unpacked source tarball at $unpacked_sdist ... "
if [ -d $unpacked_sdist ]; then
ok
break
else
warning "Unpacked source tarball at $unpacked_sdist not found!"
fi
done
if [ ! -d $unpacked_sdist ]; then
error "No unpacked source tarball found for ${repo} ${version} in $tmpdir!"
fi

if [[ "$repo" == "easybuild-easyconfigs" ]]; then
Expand Down

0 comments on commit 1b7d1bb

Please sign in to comment.