index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2020-02-20 15:40:32 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-02-20 15:40:32 +0100 |
commit | cff358619ed62e8b458540e052c879c12ed4fd22 (patch) | |
tree | 7ea5590209a00f2c697055972c1f140a074ec6b0 /lib | |
parent | 36b0e9da28d78caf79f1fc5f8e39cb467aea3354 (diff) |
-rwxr-xr-x | lib/mysql-functions | 7 |
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`,"=",' |