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.
17 $RSYNC --list-only $RSYNC_HOST::$RSYNC_PATH/dists/$dist/main/
20 ## Gather up excluded architectures as we go.
23 while read mode size date time name; do
25 ## Check directories of binary packages. If it's an architecture we
26 ## don't want to reject, then continue on.
33 case ":$WANT_ARCH:" in *:"$arch":*) continue ;; esac
40 ## Pick out the architecture name. Check whether we've seen it before.
46 excludes="${excludes+$excludes }$arch"
51 ## Done. Print out the finished list.