From 4b4a648c3ba4612d82ed1c6c23eb81fcef97fd14 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Fri, 17 Jul 2009 12:35:49 -0700 Subject: sourceballs: skip nonexistant FTP paths This is useful when running on separate machines that don't have all repos Signed-off-by: Aaron Griffin --- cron-jobs/sourceballs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cron-jobs/sourceballs') diff --git a/cron-jobs/sourceballs b/cron-jobs/sourceballs index 625d90d..d07c482 100755 --- a/cron-jobs/sourceballs +++ b/cron-jobs/sourceballs @@ -56,6 +56,10 @@ for repo in $repos; do for arch in $arches; do export CARCH="$arch" ftppath="$ftpbase/$repo/os/$arch" + if [ ! -d "$ftppath" ]; then + echo "FTP path does not exist: $ftppath" >2 + continue + fi cd $ftppath for pkg in *$PKGEXT; do pkgname=$(getpkgname $pkg) -- cgit v1.2.3-24-g4f1b