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>2020-02-20 15:40:32 +0100
committerErich Eckner <git@eckner.net>2020-02-20 15:40:32 +0100
commitcff358619ed62e8b458540e052c879c12ed4fd22 (patch)
tree7ea5590209a00f2c697055972c1f140a074ec6b0 /lib/mysql-functions
parent36b0e9da28d78caf79f1fc5f8e39cb467aea3354 (diff)
lib/mysql-functions: mysql_retrieve_static_information(): retrieve names of architectures, too
Diffstat (limited to 'lib/mysql-functions')
-rwxr-xr-xlib/mysql-functions7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index abd7488..41e1270 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -1427,6 +1427,7 @@ mysql_join_dependencies_install_target_providers_with_versions() {
# mysql_retrieve_static_information
# retrieve some static information from the database:
+# - names of architectures -> $architectures
# - ids of architectures -> $architecture_ids__$arch
# - ids of non-any architectures -> $non_any_architecture_ids
# - ids of package repositories -> $repository_ids__$arch_$repo
@@ -1438,6 +1439,12 @@ mysql_join_dependencies_install_target_providers_with_versions() {
mysql_retrieve_static_information() {
eval "$(
{
+ printf 'SELECT CONCAT('
+ printf '"architectures=\\"",'
+ printf 'GROUP_CONCAT(`architectures`.`name` SEPARATOR " "),'
+ printf '"\\"")'
+ printf ' FROM `architectures`'
+ printf ' GROUP BY "1";\n'
printf 'SELECT REPLACE(CONCAT('
printf '"architecture_ids__",'
printf '`architectures`.`name`,"=",'