From ea10fdd184195317fe6716a8db0c0a11bcfae5e4 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 6 Oct 2017 13:06:43 +0200 Subject: bin/get-package-updates, bin/seed-build-list, bin/why-dont-you: remove comments from blacklist --- bin/get-package-updates | 6 +++++- bin/seed-build-list | 4 ++++ bin/why-dont-you | 4 ++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/bin/get-package-updates b/bin/get-package-updates index 7e474fa..af33653 100755 --- a/bin/get-package-updates +++ b/bin/get-package-updates @@ -238,7 +238,11 @@ black_listed='' black_listed_new=$( ( git -C "${repo_paths__archlinux32}" archive "$(cat "${work_dir}/archlinux32.revision")" -- 'blacklist' | \ - tar -Ox 'blacklist' + tar -Ox 'blacklist' | \ + sed ' + s/\s*#.*$// + /^\s*$/d + ' find "${work_dir}/package-infos" -maxdepth 1 -name 'lib32-*' -printf '%f\n' | \ sed 's|\(\.[^.]\+\)\{4\}$||' | \ uniq diff --git a/bin/seed-build-list b/bin/seed-build-list index b3f2cd0..6b40064 100755 --- a/bin/seed-build-list +++ b/bin/seed-build-list @@ -244,6 +244,10 @@ fi # ignore packages on the blacklist git -C "${repo_paths__archlinux32}" archive "$(cat "${work_dir}/archlinux32.revision")" -- blacklist | \ tar -Ox blacklist | \ + sed ' + s/\s*#.*$// + /^\s*$/d + ' | \ awk '{print "X X X " $1}' | \ sed 'p' diff --git a/bin/why-dont-you b/bin/why-dont-you index 8e9cb1d..45df942 100755 --- a/bin/why-dont-you +++ b/bin/why-dont-you @@ -219,6 +219,10 @@ case "${action}" in if git -C "${repo_paths__archlinux32}" archive "$(cat "${work_dir}/archlinux32.revision")" -- blacklist | \ tar -Ox 'blacklist' | \ + sed ' + s/\s*#.*$// + /^\s*$/d + ' | \ grep -qxF "${pkg}"; then printf 'Package "%s" is explicitely blacklisted.\n' "${pkg}" continue -- cgit v1.2.3-70-g09d2