diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-10-12 11:17:07 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-10-12 11:17:07 +0200 |
commit | a1ba979a0e3c763449d91fc787333f4058e89aa8 (patch) | |
tree | 09a89e8c92da96006c6c913e6103c3976a24024d /cron-jobs | |
parent | 7711a02ed5ce1be7f5f0cb572a1efc4c29b6dfe0 (diff) | |
download | dbscripts-a1ba979a0e3c763449d91fc787333f4058e89aa8.tar.gz dbscripts-a1ba979a0e3c763449d91fc787333f4058e89aa8.tar.xz |
Dont try to index empty repos
Diffstat (limited to 'cron-jobs')
-rwxr-xr-x | cron-jobs/create-filelists | 4 |
1 files changed, 2 insertions, 2 deletions
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" |