From a1ba979a0e3c763449d91fc787333f4058e89aa8 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Tue, 12 Oct 2010 11:17:07 +0200 Subject: Dont try to index empty repos --- cron-jobs/create-filelists | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cron-jobs/create-filelists') diff --git a/cron-jobs/create-filelists b/cron-jobs/create-filelists index 2526a61..d8a5ba1 100755 --- a/cron-jobs/create-filelists +++ b/cron-jobs/create-filelists @@ -41,7 +41,7 @@ for repo in ${PKGREPOS[@]}; do mkdir -p "${DBDIR}/${repodir}" bsdtar -xf "${targetdir}/${repodir}/${REPO_DB_FILE}" -C "${DBDIR}/${repodir}" else - error "Fail! Does the repo $repo with arch $arch even exist?" + warning "The repo $repo with arch $arch does not exist" continue fi @@ -71,7 +71,7 @@ for repo in ${PKGREPOS[@]}; do done # create new file archive - if [ "$cached" == "no" ]; then + if [ "$cached" == "no" -a -d "${MYTMPDIR}/${repodir}" ]; then # at least one package has changed, so let's rebuild the archive pkgdir="${targetdir}/${repodir}" mkdir -p "$pkgdir" -- cgit v1.2.3-24-g4f1b