Skip to content

Commit

Permalink
pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vvolkl committed Jan 8, 2025
1 parent 3a9e085 commit fc17b2e
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions makedist
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,13 @@ case $1 in
elif [ $EL -eq 7 ]; then
BASEURL="https://repository.egi.eu/sw/production/umd/4/centos7/x86_64/updates"
else
echo "ERROR: unsupported OS for egi! only centos7, almalinux9 supported."
echo "ERROR: unsupported OS for egi! only centos7, almalinux9 supported." >&2
exit 1
fi
BASELIST="`curl -Ls $BASEURL/|grep "cvmfs-"|sed 's/.*href="//;s/".*//'`";;
default|none)
INCLUDEHELPER=false
BASEURL="https://cvmrepo.web.cern.ch/cvmrepo/yum/cvmfs/EL/$EL/x86_64"
BASEURL_MIRROR1="https://cvmrepo.web.cern.ch/cvmrepo/yum/cvmfs/EL/$EL/x86_64";;
BASEURL="https://cvmrepo.web.cern.ch/cvmrepo/yum/cvmfs/EL/$EL/x86_64";;
*) usage;;
esac
DISTTYPE=$1
Expand Down Expand Up @@ -262,19 +261,6 @@ if [ "$DISTTYPE" = egi ] && [ "$EL" = 8 ]; then
exit 1
fi

CVMFS_BASEURL_MIRROR1="https://cvmrepo.s3.cern.ch/cvmrepo"
CVMFS_BASEURL_MIRROR2="https://cvmrepo.web.cern.ch/cvmrepo"
CVMFS_BASEURL=$CVMFS_BASEURL_MIRROR1
CVMFSVERSION="`curl -Ls $CVMFS_BASE_URL/.latest_cvmfs_version_prod`"
if [ -z "CVMFSVERSION" ]; then
echo "WARN: Couldn't find .latest_cvmfs_version_prod in mirror $CVMFS_BASEURL, switching over.."
CVMFS_BASEURL="$CVMFS_BASE_URL_MIRROR2"
fi
CVMFSVERSION="`curl -Ls $CVMFS_BASEURL/.latest_cvmfs_version_prod`"
if [ -z "CVMFSVERSION" ]; then
echo "ERROR: Couldn't find .latest_cvmfs_version_prod in mirror $CVMFS_BASEURL, and no mirrors left! "
exit 1
fi

URLS=""
CVMFSURL=""
Expand All @@ -291,6 +277,19 @@ if [ "$ARCH" = "ppc64le" ]; then
CVMFSRPMNAME="$(basename $CVMFSRPMURLS)"
CVMFSVERSION="`echo "$CVMFSRPMNAME" 's/.*cvmfs-\([^-]*\)-.*/\1/'`"
else
CVMFS_BASEURL_MIRROR1="https://cvmrepo.s3.cern.ch/cvmrepo"
CVMFS_BASEURL_MIRROR2="https://cvmrepo.web.cern.ch/cvmrepo"
CVMFS_BASEURL=$CVMFS_BASEURL_MIRROR1
CVMFSVERSION="`curl -Ls $CVMFS_BASE_URL/.latest_cvmfs_version_prod`"
if [ -z "CVMFSVERSION" ]; then
echo "WARN: Couldn't find .latest_cvmfs_version_prod in mirror $CVMFS_BASEURL, switching over.." >&2
CVMFS_BASEURL="$CVMFS_BASE_URL_MIRROR2"
CVMFSVERSION="`curl -Ls $CVMFS_BASEURL/.latest_cvmfs_version_prod`"
if [ -z "CVMFSVERSION" ]; then
echo "ERROR: Couldn't find .latest_cvmfs_version_prod in mirror $CVMFS_BASEURL, and no mirrors left! " >&2
exit 1
fi
fi
CVMFSURL="$CVMFS_BASEURL/yum/cvmfs/$DISTRO_YUM/$VERS/$ARCH"
CVMFSRPMNAME="cvmfs-$CVMFSVERSION-1.$MACH.$ARCH.rpm"
CVMFSRPMURLS="$CVMFSURL/$CVMFSRPMNAME"
Expand Down

0 comments on commit fc17b2e

Please sign in to comment.