From e4677e04f39bfca06ca7b1fb92f89b7684f20e87 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 19 Jun 2017 13:47:32 +0200 Subject: switch from sshfs to rsync - to avoid needing to remount --- bin/build-master-status | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) (limited to 'bin/build-master-status') diff --git a/bin/build-master-status b/bin/build-master-status index 84e5dc6..ab052be 100755 --- a/bin/build-master-status +++ b/bin/build-master-status @@ -5,8 +5,13 @@ . "${0%/*}/../conf/default.conf" stable="$( - find "${master_mirror_directory}/i686/" \( -name '*testing' -o -name '*staging' \) -prune -o -name '*.pkg.tar.xz' -print 2> /dev/null | \ - wc -l + ${master_mirror_command} "${master_mirror_directory}/i686/" | \ + awk '{print $5}' | \ + grep -v 'testing$\|staging$\|^\.$' | \ + while read -r dir; do + ${master_mirror_command} "${master_mirror_directory}/i686/${dir}/" + done | \ + grep -c '\.pkg\.tar\.xz$' )" tasks="$( wc -l < \ @@ -22,12 +27,22 @@ pending_packages="$( wc -l )" staging="$( - find "${master_mirror_directory}/i686/"*staging -name '*.pkg.tar.xz' 2> /dev/null | \ - wc -l + ${master_mirror_command} "${master_mirror_directory}/i686/" | \ + awk '{print $5}' | \ + grep 'staging$' | \ + while read -r dir; do + ${master_mirror_command} "${master_mirror_directory}/i686/${dir}/" + done | \ + grep -c '\.pkg\.tar\.xz$' )" testing="$( - find "${master_mirror_directory}/i686/"*testing -name '*.pkg.tar.xz' 2> /dev/null | \ - wc -l + ${master_mirror_command} "${master_mirror_directory}/i686/" | \ + awk '{print $5}' | \ + grep 'testing$' | \ + while read -r dir; do + ${master_mirror_command} "${master_mirror_directory}/i686/${dir}/" + done | \ + grep -c '\.pkg\.tar\.xz$' )" broken="$( ls "${work_dir}/package-states/" | \ -- cgit v1.2.3-54-g00ecf