index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-06-27 12:37:05 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-06-27 12:37:05 +0200 |
commit | 2343bb827d3850e0c63937b62f9097e935b491c4 (patch) | |
tree | 5341e3d29a8c7125b43e6641a6fda66c9ac8ca4a /bin/get-package-updates | |
parent | ff016f881afa1a34ad1a9ef79236555e818411ff (diff) |
-rwxr-xr-x | bin/get-package-updates | 20 |
diff --git a/bin/get-package-updates b/bin/get-package-updates index 9d5a4c4..5c0fc77 100755 --- a/bin/get-package-updates +++ b/bin/get-package-updates @@ -222,8 +222,10 @@ echo 'apply blacklisting' black_listed='' black_listed_new="$( cat "${repo_paths__archlinux32}/blacklist" - ls "${work_dir}/package-infos/" | \ - grep '^lib32-.*\.depends' | \ + ls "${work_dir}/package-infos" | \ + grep '\.depends$' | \ + sed "s|^|${work_dir}/package-infos/|" | \ + xargs -r grep -l '^lib32-' | \ sed ' s|^.*/|| s|\(\.[^.]\+\)\{3\}$|| @@ -237,13 +239,23 @@ while [ -n "${black_listed_new}" ]; do black_listed_new="$( echo "${black_listed_new}" | \ while read -r bl_package; do - grep -lxF "${bl_package}" "${work_dir}/package-infos/"*.depends | \ + ls "${work_dir}/package-infos" | \ + grep '\.depends$' | \ + sed "s|^|${work_dir}/package-infos/|" | \ + xargs -r grep -lxF "${bl_package}" | \ sed ' s|^.*/|| s|\(\.[^.]\+\)\{3\}$|| ' done | \ - grep -v '^python-pysocks$\|^gens$' | \ + while read -r pkg; do + if [ "${pkg}" = 'python-pysocks' ] || \ + [ "${pkg}" = 'gens' ]; then + >&2 printf 'blacklisting: %s would be black listed, but is ignored.' "${pkg}" + else + echo "${pkg}" + fi + done | \ sort -u )" black_listed_new="$( |