summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-08-07 13:58:44 +0200
committerErich Eckner <git@eckner.net>2019-08-07 13:58:44 +0200
commit3acd055e71a5de6d770f09a9875d6fd3e6f95bd5 (patch)
tree01ad1892920aea5d8fa4631d350003f9a19d27a2 /lib
parent11053654d47f2a54c3eef8037ce8918253a73b86 (diff)
downloadbuilder-3acd055e71a5de6d770f09a9875d6fd3e6f95bd5.tar.xz
lib/mysql-functions: mysql_join_dependencies_install_target_providers_with_versions(): extract list of non-any repos into shell variable, too
Diffstat (limited to 'lib')
-rwxr-xr-xlib/mysql-functions9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index 548ee00..2b09f6b 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -1379,6 +1379,7 @@ mysql_join_dependencies_install_target_providers_with_versions() {
# mysql_retrieve_static_information
# retrieve some static information from the database:
# - ids of architectures -> $architecture_ids__$arch
+# - ids of non-any architectures -> $non_any_architecture_ids
# - ids of package repositories -> $repository_ids__$arch_$repo
# - names, paths and heads of git_repositories
# - ids of repository_stabilities
@@ -1391,6 +1392,14 @@ mysql_retrieve_static_information() {
printf '`architectures`.`id`'
printf '),"-","_")'
printf ' FROM `architectures`;\n'
+ printf 'SELECT CONCAT('
+ printf '"non_any_architecture_ids=",'
+ printf 'GROUP_CONCAT('
+ printf '`architectures`.`id`'
+ printf ' ORDER BY `architectures`.`id`'
+ printf '))'
+ printf ' FROM `architectures`'
+ printf ' WHERE `architectures`.`name`!="any";\n'
printf 'SELECT REPLACE(CONCAT('
printf '"repository_ids__",'
printf '`architectures`.`name`,"_",'