diff options
author | Erich Eckner <git@eckner.net> | 2018-05-30 10:05:02 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-05-30 10:05:02 +0200 |
commit | 0a362ccf515c3b0c374f768400569a48e36d2572 (patch) | |
tree | 71965d1fc058df10e8b8a9d9a5ef31ac03dce89b /bin | |
parent | 510edadf1d9fb89c021dc568ca671b64f59e5525 (diff) | |
download | builder-0a362ccf515c3b0c374f768400569a48e36d2572.tar.xz |
bin/seed-build-list: get repositories from database
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/seed-build-list | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/seed-build-list b/bin/seed-build-list index 2d636b8..389fdcf 100755 --- a/bin/seed-build-list +++ b/bin/seed-build-list @@ -131,7 +131,16 @@ if ${update}; then fi fi -repos="${stable_package_repositories}" +# shellcheck disable=SC2016 +repos=$( + { + printf 'SELECT DISTINCT `repositories`.`name`' + printf ' FROM `repositories`' + mysql_join_repositories_repository_stabilities + printf ' WHERE `repository_stabilities`.`name`="stable";\n' + } | \ + mysql_run_query +) # genereate must-haves query from mirror delta if [ -s "${tmp_dir}/mirrors" ]; then |