Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/get-package-updates14
1 files changed, 10 insertions, 4 deletions
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