Skip to content

Commit

Permalink
Use mariadb.sources generated by BB
Browse files Browse the repository at this point in the history
The Packages.gz URL needed to be updated too.
  • Loading branch information
fauust authored and vladbogo committed Nov 29, 2023
1 parent 8e40456 commit bff7134
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion scripts/bash_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,10 @@ deb_setup_bb_artifacts_mirror() {
# stop if any variable is undefined
set -u
bb_log_info "setup buildbot artifact repository"
sudo sh -c "echo 'deb [trusted=yes] $artifactsURL/$tarbuildnum/$parentbuildername/debs ./' >/etc/apt/sources.list.d/bb-artifacts.list"
sudo wget "$artifactsURL/$tarbuildnum/$parentbuildername/mariadb.sources" -O /etc/apt/sources.list.d/mariadb.sources || {
bb_log_err "unable to download $artifactsURL/$tarbuildnum/$parentbuildername/mariadb.sources"
exit 1
}
set +u
}

Expand Down
6 changes: 5 additions & 1 deletion scripts/deb-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ set -e
# shellcheck disable=SC1091
. ./bash_lib.sh

# load OS variables
# shellcheck disable=SC1091
. /etc/os-release

# function to be able to run the script manually (see bash_lib.sh)
manual_run_switch "$1"

Expand All @@ -34,7 +38,7 @@ deb_setup_mariadb_mirror "$master_branch"
# setup repository for BB artifacts
deb_setup_bb_artifacts_mirror

wget -O - "${artifactsURL}/${tarbuildnum}/${parentbuildername}/debs/Packages.gz" | gunzip >Packages
wget -O - "${artifactsURL}/${tarbuildnum}/${parentbuildername}/dists/${VERSION_CODENAME}/main/binary-${arch}/Packages.gz" | gunzip >Packages

set -x

Expand Down

0 comments on commit bff7134

Please sign in to comment.