From dee02afb3ebbcbad7c20cbde0fae46cd6bb27332 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 24 Mar 2021 19:54:45 +0100 Subject: lib/load-configuration: the nit-picker needs the static info from the database, too - but *before* loading modifications --- lib/load-configuration | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'lib/load-configuration') diff --git a/lib/load-configuration b/lib/load-configuration index d8a5c09..37fd850 100755 --- a/lib/load-configuration +++ b/lib/load-configuration @@ -135,6 +135,12 @@ max_testing_duration="14" # set default location of archbuild chroots archbuild_chroots='/var/lib/archbuild' +# load static values from the database +if ${i_am_the_master} \ +|| [ "${0##*/}" = 'nit-picker' ]; then + mysql_retrieve_static_information +fi + # possibly pull in custom modifications if [ -r "${base_dir}/conf/common.conf" ]; then @@ -154,11 +160,6 @@ if ! ${i_am_the_master} && \ . "${base_dir}/conf/slave.conf" fi -# load static values from the database -if ${i_am_the_master}; then - mysql_retrieve_static_information -fi - # check / set up environment if [ -z "${build_list_lock_file}" ]; then -- cgit v1.2.3-54-g00ecf