diff options
-rwxr-xr-x | lib/mysql-functions | 6 |
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`,"=",' |