diff options
author | Erich Eckner <git@eckner.net> | 2017-07-29 08:53:09 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-07-29 08:53:09 +0200 |
commit | 34cbce6fa75880f50071b932a29a33582fb94db8 (patch) | |
tree | 0fde57255d6df67fe149c0f59a8288440f692969 /bin/get-package-updates | |
parent | b932ed76a9c7b8ecb1d50962295a5c2f34c06ab9 (diff) | |
download | builder-34cbce6fa75880f50071b932a29a33582fb94db8.tar.xz |
bin/get-package-updates: bugfixes, add hack(!)-whitelist
Diffstat (limited to 'bin/get-package-updates')
-rwxr-xr-x | bin/get-package-updates | 28 |
1 files changed, 21 insertions, 7 deletions
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}" |