index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-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`,"=",' |