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-07-26 12:03:20 +0200
committerErich Eckner <git@eckner.net>2018-07-26 12:03:20 +0200
commitb3867a6fc5da5181f9f3d8379dab62f33b313c6b (patch)
tree9200c868b2aeb8c87c8642d1e877a3b589290f18 /lib/mysql-functions
parent83d0e54d778b58c341505ca7142c6f2c4e6dec99 (diff)
lib/mysql-functions: mysql_retrieve_static_information(): retrieve architecture ids, too
Diffstat (limited to 'lib/mysql-functions')
-rwxr-xr-xlib/mysql-functions6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index bb58ca0..4a04bd1 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -1055,6 +1055,7 @@ done
# mysql_retrieve_static_information
# retrieve some static information from the database:
+# - ids of architectures -> $architecture_ids__$arch
# - ids of package repositories -> $repository_ids__$arch_$repo
# - names and paths of git_repositories
# - ids of repository_stabilities
@@ -1062,6 +1063,11 @@ mysql_retrieve_static_information() {
eval "$(
{
printf 'SELECT REPLACE(CONCAT('
+ printf '"architecture_ids__",'
+ printf '`architectures`.`name`,"=",'
+ printf '`architectures`.`id`'
+ printf '),"-","_") FROM `architectures`;\n'
+ printf 'SELECT REPLACE(CONCAT('
printf '"repository_ids__",'
printf '`architectures`.`name`,"_",'
printf '`repositories`.`name`,"=",'