From 34cbce6fa75880f50071b932a29a33582fb94db8 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 29 Jul 2017 08:53:09 +0200 Subject: bin/get-package-updates: bugfixes, add hack(!)-whitelist --- bin/get-package-updates | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) (limited to 'bin/get-package-updates') diff --git a/bin/get-package-updates b/bin/get-package-updates index 2fec570..bf516a8 100755 --- a/bin/get-package-updates +++ b/bin/get-package-updates @@ -15,7 +15,7 @@ # dependencies declared inside a PKGBUILD's package function do not # correctly take into account CARCH (see package "gens" from community) -# remove extra case for "python-pysocks" and "gens" +# remove extra whitelist cases . "${0%/*}/../conf/default.conf" @@ -240,15 +240,14 @@ black_listed_new="$( )" ls "${work_dir}/package-infos/" | \ - grep '\.builds$' | \ + grep '\(\.[0-9a-f]\{40\}\)\{2\}\.[^.]\+\.builds$' | \ sed ' s|^\(.*\)\.\([^.]\+\)\.\([^.]\+\)\.\([^.]\+\)\.[^.]\+$|\2 \3 \4 \1| ' | \ sort -k4,4 | \ uniq -f3 --group=append | \ - while read rev mod_rev repo pkg; do - if [ -z "${fs}" ] && \ - [ -z "${rev}" ] && \ + while read -r rev mod_rev repo pkg; do + if [ -z "${rev}" ] && \ [ -z "${mod_rev}" ] && \ [ -z "${repo}" ] && \ [ -z "${pkg}" ]; then @@ -265,7 +264,8 @@ ls "${work_dir}/package-infos/" | \ sort -u | \ find_newest_of_git_revisions )" \ - "${orepo}" + "${orepo}" | \ + grep '\(\.[0-9a-f]\{40\}\)\{2\}\.[^.]\+$' revs='' mod_revs='' continue @@ -333,7 +333,21 @@ while [ -n "${black_listed_new}" ]; do join -1 1 -2 2 -o 2.1 - "${work_dir}/newest-dependencies" | \ while read -r pkg; do if [ "${pkg}" = 'python-pysocks' ] || \ - [ "${pkg}" = 'gens' ]; then + [ "${pkg}" = 'dev86' ] || \ + [ "${pkg}" = 'gens' ] || \ + [ "${pkg}" = 'luxblend25' ] || \ + [ "${pkg}" = 'nspluginwrapper' ] || \ + [ "${pkg}" = 'pcsxr' ] || \ + [ "${pkg}" = 'python-pifpaf' ] || \ + [ "${pkg}" = 'python-pymongo' ] || \ + [ "${pkg}" = 'q4wine' ] || \ + [ "${pkg}" = 'sopcast' ] || \ + [ "${pkg}" = 'syslinux' ] || \ + [ "${pkg}" = 'unifi' ] || \ + [ "${pkg}" = 'wine' ] || \ + [ "${pkg}" = 'wine-staging' ] || \ + [ "${pkg}" = 'wine-staging-nine' ] || \ + [ "${pkg}" = 'zsnes' ]; then >&2 printf 'blacklisting: %s would be black listed, but is ignored.\n' "${pkg}" else echo "${pkg}" -- cgit v1.2.3-54-g00ecf