summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-05-25 13:55:40 +0200
committerErich Eckner <git@eckner.net>2018-05-25 13:55:40 +0200
commitf891ac3a111286ac4095bea048972ae138ec45be (patch)
treea0aba3e2b1b305da71368a7ce7ffa404160b809e
parent8aeca7194277ab52126bb3358635743be2ed7e2d (diff)
downloadbuilder-f891ac3a111286ac4095bea048972ae138ec45be.tar.xz
lib/mysql-functions: mysql_sanity_check: retrieve repository ids if not yet done
-rwxr-xr-xlib/mysql-functions4
1 files changed, 4 insertions, 0 deletions
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`'