Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/schedule-for-rebuild
diff options
context:
space:
mode:
Diffstat (limited to 'bin/schedule-for-rebuild')
-rwxr-xr-xbin/schedule-for-rebuild5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/schedule-for-rebuild b/bin/schedule-for-rebuild
index 9c2949d..cf2299e 100755
--- a/bin/schedule-for-rebuild
+++ b/bin/schedule-for-rebuild
@@ -482,8 +482,10 @@ if [ ! -s "${tmp_dir}/pkgbases" ]; then
exit
fi
+# shellcheck disable=SC2016
awkcmd='!seen[$0]++'
if ${latest_package_only}; then
+ # shellcheck disable=SC2016
awkcmd='$5!="community" && $5!="build-support" && !seen[$2]++'
fi
tac "${tmp_dir}/pkgbases" | awk "${awkcmd}" | tac \
@@ -492,7 +494,7 @@ tac "${tmp_dir}/pkgbases" | awk "${awkcmd}" | tac \
if ${interactive}; then
echo "Which packages to rebuild? (Comma separated; Empty means all)"
nl "${tmp_dir}/pkgbases"
- read -p "Choice: " pkg_rebuild_choice
+ read -r -p "Choice: " pkg_rebuild_choice
if [ -n "$pkg_rebuild_choice" ]; then
readarray -td, pkg_rebuild_choice_array < <( printf '%s' "$pkg_rebuild_choice" | sed 's/\s//g;s/,\{2,\}/,/g' )
@@ -504,7 +506,6 @@ fi
if ${update}; then
cut -d' ' -f 2,3,4,5 "${tmp_dir}/pkgbases" \
| while read -r pkgbase git_rev git_mod_rev repo; do
- success=false
# shellcheck disable=SC2154
printf '%s ' "${pkgbase}" "${git_rev}" "${git_mod_rev}" "${repo_heads__archlinux32}" "${repo}" \
| sed 's/ $/\n/'