Skip to content

Commit

Permalink
Merge pull request #5651 from AenBleidd/vko_fix_rpmrepo_script
Browse files Browse the repository at this point in the history
[ci] fix rpmrepo and debrepo scripts
  • Loading branch information
AenBleidd authored Jun 12, 2024
2 parents 9bf6372 + 1294f4d commit 084359d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/debrepo/repo_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/rpmrepo/repo_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 084359d

Please sign in to comment.