Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/mysql-functions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-05-30 10:23:57 +0200
committerErich Eckner <git@eckner.net>2018-05-30 10:23:57 +0200
commit42c69f3c1bdf6358ad1ab632997d3a12fd11dd4f (patch)
tree9cf16f4f3b5e21374a321ca4c60fa48f12ada6cf /lib/mysql-functions
parent731a2e13d0c87cbc1a7467f17bcf01fb84faf357 (diff)
lib/mysql-functions: mysql_retrieve_repository_ids() -> mysql_retrieve_static_information() ... and it will be called automatically by lib/load-configuration
Diffstat (limited to 'lib/mysql-functions')
-rwxr-xr-xlib/mysql-functions16
1 files changed, 4 insertions, 12 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index 99ad9ce..12de251 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -204,11 +204,6 @@ mysql_add_package_source() {
mysql_generate_package_metadata() {
- # retrieve repository_ids if not yet done
- if [ -z "${repository_ids__any_build_list}" ]; then
- mysql_retrieve_repository_ids
- fi
-
( # new shell is intentional
current_repository_id="$1"
package="$2"
@@ -624,10 +619,6 @@ 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`'
@@ -1046,9 +1037,10 @@ mysql_show_binary_packages_in_repositories_issues() {
mysql_run_query
}
-# mysql_retrieve_repository_ids
-# retrieve the ids of all known repositories into $repository_ids__$arch_$repo
-mysql_retrieve_repository_ids() {
+# mysql_retrieve_static_information
+# retrieve some static information from the database:
+# - ids of all known repositories -> $repository_ids__$arch_$repo
+mysql_retrieve_static_information() {
eval "$(
{
printf 'SELECT CONCAT('