Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-05-30 10:05:02 +0200
committerErich Eckner <git@eckner.net>2018-05-30 10:05:02 +0200
commit0a362ccf515c3b0c374f768400569a48e36d2572 (patch)
tree71965d1fc058df10e8b8a9d9a5ef31ac03dce89b
parent510edadf1d9fb89c021dc568ca671b64f59e5525 (diff)
bin/seed-build-list: get repositories from database
-rwxr-xr-xbin/seed-build-list11
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