From cff358619ed62e8b458540e052c879c12ed4fd22 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 20 Feb 2020 15:40:32 +0100 Subject: lib/mysql-functions: mysql_retrieve_static_information(): retrieve names of architectures, too --- lib/mysql-functions | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/mysql-functions') 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`,"=",' -- cgit v1.2.3-70-g09d2