6 echo >&2 "Usage: $0 HOST PATH ARCH:ARCH:... DIST..."
10 RSYNC_HOST
=$1 RSYNC_PATH
=$2 WANT_ARCH
=$3; shift 3
14 ## Check the available distributions for architectures.
16 rsync
--list-only
$RSYNC_HOST::$RSYNC_PATH/dists
/$dist/main
/
19 ## Gather up excluded architectures as we go.
22 while read mode size
date time name
; do
24 ## Check directories of binary packages. If it's an architecture we
25 ## don't want to reject, then continue on.
32 case ":$WANT_ARCH:" in *:"$arch":*) continue ;; esac
39 ## Pick out the architecture name. Check whether we've seen it before.
45 excludes
="${excludes+$excludes }$arch"
50 ## Done. Print out the finished list.