diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-03-31 23:09:57 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-03-31 23:09:57 +0200 |
commit | 57987ae42fb58c58e044bfd7d3486010b32bb313 (patch) | |
tree | 294f83ab65d2ff8610442c7a7f22cc4932f351fc /cron-jobs | |
parent | 7bc888905280e1b59febdc4bad475b726225b95d (diff) |
don't publish *.old files
Diffstat (limited to 'cron-jobs')
-rwxr-xr-x | cron-jobs/create-filelists | 3 |
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 |