From 1294f4d8ebbb3f077aca31d8d73eedef1d318450 Mon Sep 17 00:00:00 2001 From: Vitalii Koshura Date: Wed, 12 Jun 2024 04:23:37 +0200 Subject: [PATCH] [ci] fix rpmrepo and debrepo scripts Signed-off-by: Vitalii Koshura --- .github/workflows/debrepo/repo_update.sh | 4 ++-- .github/workflows/rpmrepo/repo_update.sh | 30 ++++++++++++------------ 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/debrepo/repo_update.sh b/.github/workflows/debrepo/repo_update.sh index f1128d0cbea..1a9460ce53f 100755 --- a/.github/workflows/debrepo/repo_update.sh +++ b/.github/workflows/debrepo/repo_update.sh @@ -111,7 +111,7 @@ if [[ "$?" -eq "0" ]]; then IS_MIRROR=0 fi -if [[ "$TYPE" -eq "stable" ]]; then +if [[ "$TYPE" == "stable" ]]; then # mirror alpha repo aptly -config=$CONF_FILE -keyring=$KEYRING mirror create boinc-alpha-mirror $BASEREPO/alpha/$DISTRO $DISTRO exit_on_fail "Could not mirror alpha repository" @@ -189,7 +189,7 @@ if [[ "$IS_MIRROR" -eq "0" ]]; then aptly -config=$CONF_FILE snapshot show old-boinc-$TYPE-snap fi -if [[ "$TYPE" -eq "stable" ]]; then +if [[ "$TYPE" == "stable" ]]; then # get only one latest packages of each type from the alpha repo packets=$(aptly -config=$CONF_FILE mirror search boinc-alpha-mirror | grep -o '[^[:space:]]*_\([[:digit:]]*\.\)\{2\}[[:digit:]]*-\([[:digit:]]*_\)[^[:space:]]*' | sort -t '_' -k 2 -V -r | uniq) declare -A split_lists diff --git a/.github/workflows/rpmrepo/repo_update.sh b/.github/workflows/rpmrepo/repo_update.sh index 4f3d5983599..f458b4dc84e 100755 --- a/.github/workflows/rpmrepo/repo_update.sh +++ b/.github/workflows/rpmrepo/repo_update.sh @@ -137,23 +137,23 @@ if [[ ! "$IS_MIRROR" -eq "0" ]]; then fi fi -if [[ "$TYPE" -eq "stable" ]]; then +if [[ "$TYPE" == "stable" ]]; then # create alpha repo of the same distribution echo """# - # BOINC Repository - # - - [boinc-alpha-$DISTRO] - name = BOINC alpha $DISTRO repository - baseurl = $BASEREPO/alpha/$DISTRO - arch = $ARCH - priority = 100 - enabled = 1 - gpgcheck = 1 - gpgkey = $BASEREPO/alpha/$DISTRO/$RELEASEKEY - max_parallel_downloads = 2 - - """ > "$CWD/mirror/boinc-alpha-$DISTRO.repo" +# BOINC Repository +# + +[boinc-alpha-$DISTRO] +name = BOINC alpha $DISTRO repository +baseurl = $BASEREPO/alpha/$DISTRO +arch = $ARCH +priority = 100 +enabled = 1 +gpgcheck = 1 +gpgkey = $BASEREPO/alpha/$DISTRO/$RELEASEKEY +max_parallel_downloads = 2 + +""" > "$CWD/mirror/boinc-alpha-$DISTRO.repo" # necessary for reposync to work correctly mkdir -p /etc/yum/repos.d/