From f891ac3a111286ac4095bea048972ae138ec45be Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 25 May 2018 13:55:40 +0200 Subject: lib/mysql-functions: mysql_sanity_check: retrieve repository ids if not yet done --- lib/mysql-functions | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/mysql-functions b/lib/mysql-functions index 4ed10a2..045f8ca 100755 --- a/lib/mysql-functions +++ b/lib/mysql-functions @@ -624,6 +624,10 @@ mysql_generate_package_metadata() { # do a sanity check on the mysql database mysql_sanity_check() { + # retrieve repository_ids if not yet done + if [ -z "${repository_ids__any_build_list}" ]; then + mysql_retrieve_repository_ids + fi { printf 'SELECT CONCAT("\\"any\\" build-assignment building \\"",`bp_arch`.`name`,"\\" binary package: ",`binary_packages`.`pkgname`)' printf ' FROM `binary_packages`' -- cgit v1.2.3-70-g09d2