From 8b3300ebba5e6e74998633efca68a76763d609f1 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 7 Aug 2019 09:54:20 +0200 Subject: bin/get-package-updates: blacklist all blacklist packages if -n given --- bin/get-package-updates | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'bin/get-package-updates') diff --git a/bin/get-package-updates b/bin/get-package-updates index b33bdf6..4640a60 100755 --- a/bin/get-package-updates +++ b/bin/get-package-updates @@ -469,9 +469,11 @@ echo 'Check modified packages from the last update, and put them to the build li exit 1 done -if [ -s "${tmp_dir}/modified-packages" ]; then +if [ -s "${tmp_dir}/modified-packages" ] || ! ${pull}; then echo 'Delete black-listed packages.' - sort -u "${tmp_dir}/modified-packages" --output "${tmp_dir}/modified-packages" + if [ -s "${tmp_dir}/modified-packages" ]; then + sort -u "${tmp_dir}/modified-packages" --output "${tmp_dir}/modified-packages" + fi # extract black-listed packages git -C "${repo_paths__archlinux32}" archive "${new_repo_revisions__archlinux32}" -- 'blacklist' | \ tar -t 'blacklist' | \ @@ -481,8 +483,12 @@ if [ -s "${tmp_dir}/modified-packages" ]; then d ' | \ sort -u | \ - sort -k2,2 | \ - join -1 1 -2 2 -o 2.1,2.2 "${tmp_dir}/modified-packages" - | \ + if [ -s "${tmp_dir}/modified-packages" ]; then + sort -k2,2 | \ + join -1 1 -2 2 -o 2.1,2.2 "${tmp_dir}/modified-packages" - + else + cat + fi | \ while read -r arch pkgbase; do delete_package "${arch}" "${pkgbase}" done -- cgit v1.2.3-70-g09d2