From 7d5504d7a4758156768c3bc62fb8200d03459764 Mon Sep 17 00:00:00 2001 From: Faustin Lammler Date: Tue, 28 Nov 2023 22:33:26 +0100 Subject: [PATCH] Use mariadb.sources generated by BB The Packages.gz URL needed to be updated too. --- scripts/bash_lib.sh | 5 ++++- scripts/deb-install.sh | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/bash_lib.sh b/scripts/bash_lib.sh index 37c7f169..9514d412 100644 --- a/scripts/bash_lib.sh +++ b/scripts/bash_lib.sh @@ -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 } diff --git a/scripts/deb-install.sh b/scripts/deb-install.sh index 97424814..c3055ed3 100755 --- a/scripts/deb-install.sh +++ b/scripts/deb-install.sh @@ -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" @@ -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