Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
fdintino committed Oct 15, 2024
1 parent f0c710c commit 4cbbe43
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions wheelbuild/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -404,19 +404,19 @@ function ensure_sudo {

function append_licenses {
group_start "Append licenses"
for filename in $REPO_DIR/wheelbuild/dependency_licenses/*.txt; do
echo -e "\n\n----\n\n$(basename $filename | cut -f 1 -d '.')\n" | cat >> $REPO_DIR/LICENSE
cat $filename >> $REPO_DIR/LICENSE
for filename in wheelbuild/dependency_licenses/*.txt; do
echo -e "\n\n----\n\n$(basename $filename | cut -f 1 -d '.')\n" | cat >> LICENSE
cat $filename >> LICENSE
done
echo -e "\n\n" | cat >> $REPO_DIR/LICENSE
cat $REPO_DIR/wheelbuild/dependency_licenses/PATENTS >> $REPO_DIR/LICENSE
echo -e "\n\n" | cat >> LICENSE
cat wheelbuild/dependency_licenses/PATENTS >> LICENSE
group_end
}

function pre_build {
echo "::endgroup::"

if [ -e /etc/yum.repos.d ]; then
if [ -e /etc/yum.repos.d/CentOS-*.repo ]; then
sed -i -e '/^mirrorlist=http:\/\/mirrorlist.centos.org\// { s/^/#/ ; T }' \
-e '{ s/#baseurl=/baseurl=/ ; s/mirror\.centos\.org/vault.centos.org/ }' \
/etc/yum.repos.d/CentOS-*.repo
Expand Down

0 comments on commit 4cbbe43

Please sign in to comment.