summaryrefslogtreecommitdiff
path: root/cron-jobs
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-03-31 23:09:57 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-03-31 23:09:57 +0200
commit57987ae42fb58c58e044bfd7d3486010b32bb313 (patch)
tree294f83ab65d2ff8610442c7a7f22cc4932f351fc /cron-jobs
parent7bc888905280e1b59febdc4bad475b726225b95d (diff)
don't publish *.old files
Diffstat (limited to 'cron-jobs')
-rwxr-xr-xcron-jobs/create-filelists3
1 files changed, 1 insertions, 2 deletions
diff --git a/cron-jobs/create-filelists b/cron-jobs/create-filelists
index 84867d8..a25fd1a 100755
--- a/cron-jobs/create-filelists
+++ b/cron-jobs/create-filelists
@@ -88,8 +88,7 @@ for repo in $repos; do
pkgdir="${targetdir}/${repodir}"
mkdir -p "$pkgdir"
cd "${TMPDIR}/${repodir}"
- [ -f "${pkgdir}/${FILES_DB_FILE}.old" ] && rm "${pkgdir}/${FILES_DB_FILE}.old"
- [ -f "${pkgdir}/${FILES_DB_FILE}" ] && mv "${pkgdir}/${FILES_DB_FILE}" "${pkgdir}/${FILES_DB_FILE}.old"
+ [ -f "${pkgdir}/${FILES_DB_FILE}" ] && rm "${pkgdir}/${FILES_DB_FILE}"
bsdtar --exclude=*${DBEXT//\.db/} -c${TAR_OPT}f "${pkgdir}/${FILES_DB_FILE}" *
fi
done