index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-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="$( |