summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-01-31 13:44:37 +0100
committerErich Eckner <git@eckner.net>2018-01-31 13:44:37 +0100
commitf06d489ccfae3607d0b5bf442b38fe1ae81b62d6 (patch)
tree4a372c4217a02f7da29c67e6e9c521d929c96e79 /bin
parent2a359e3274d45123bc52f7efa58f3459df35f05c (diff)
downloadbuilder-f06d489ccfae3607d0b5bf442b38fe1ae81b62d6.tar.xz
bin/get-package-updates: read lib32-* packages from database
Diffstat (limited to 'bin')
-rwxr-xr-xbin/get-package-updates11
1 files changed, 8 insertions, 3 deletions
diff --git a/bin/get-package-updates b/bin/get-package-updates
index 069277a..55efee4 100755
--- a/bin/get-package-updates
+++ b/bin/get-package-updates
@@ -343,9 +343,14 @@ black_listed_new=$(
if [ -n "${test_exclusion}" ]; then
echo "${test_exclusion}"
fi
- find "${work_dir}/package-infos" -maxdepth 1 -name 'lib32-*' -printf '%f\n' | \
- sed 's|\(\.[^.]\+\)\{4\}$||' | \
- uniq
+ # shellcheck disable=SC2016
+ {
+ printf 'SELECT DISTINCT `package_sources`.`pkgbase`'
+ printf ' FROM `package_sources`'
+ printf ' WHERE `package_sources`.`pkgbase` LIKE "lib32-%%"'
+ } | \
+ ${mysql_command} --raw --batch | \
+ sed '1d'
} | \
sort -u
)