diff options
author | Erich Eckner <git@eckner.net> | 2018-07-26 12:03:20 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-07-26 12:03:20 +0200 |
commit | b3867a6fc5da5181f9f3d8379dab62f33b313c6b (patch) | |
tree | 9200c868b2aeb8c87c8642d1e877a3b589290f18 /lib | |
parent | 83d0e54d778b58c341505ca7142c6f2c4e6dec99 (diff) | |
download | builder-b3867a6fc5da5181f9f3d8379dab62f33b313c6b.tar.xz |
lib/mysql-functions: mysql_retrieve_static_information(): retrieve architecture ids, too
Diffstat (limited to 'lib')
-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`,"=",' |