index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | bin/get-package-updates | 14 |
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 |