From 447986d17554c183d958cf7de79d1904fc32aaf6 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 25 Nov 2010 13:28:04 +0100 Subject: Add FILESEXT variable for use in create-filelists --- config | 1 + cron-jobs/create-filelists | 8 +++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/config b/config index 69f40c7..ff297ec 100644 --- a/config +++ b/config @@ -16,6 +16,7 @@ STAGING="$HOME/staging" TMPDIR="/srv/tmp" ARCHES=(i686 x86_64) DBEXT=".db.tar.gz" +FILESEXT=".files.tar.gz" PKGEXT=".pkg.tar.*" SRCEXT=".src.tar.gz" diff --git a/cron-jobs/create-filelists b/cron-jobs/create-filelists index d8a5ba1..010194b 100755 --- a/cron-jobs/create-filelists +++ b/cron-jobs/create-filelists @@ -18,15 +18,13 @@ MYTMPDIR="$(mktemp -d ${WORKDIR}/create-filelists.tmpdir.XXXXXX)" || exit 1 #adjust the nice level to run at a lower priority /usr/bin/renice +10 -p $$ > /dev/null -case "${DBEXT}" in +case "${FILESEXT}" in *.gz) TAR_OPT="z" ;; *.bz2) TAR_OPT="j" ;; *.xz) TAR_OPT="J" ;; - *) die "Unknown compression type for DBEXT=${DBEXT}" ;; + *) die "Unknown compression type for FILESEXT=${FILESEXT}" ;; esac -FILESEXT="${DBEXT//db/files}" - for repo in ${PKGREPOS[@]}; do REPO_DB_FILE="${repo}$DBEXT" FILES_DB_FILE="${repo}$FILESEXT" @@ -77,7 +75,7 @@ for repo in ${PKGREPOS[@]}; do mkdir -p "$pkgdir" pushd "${MYTMPDIR}/${repodir}" >/dev/null [ -f "${pkgdir}/${FILES_DB_FILE}" ] && rm "${pkgdir}/${FILES_DB_FILE}" - bsdtar --exclude=*${DBEXT//\.db/} -c${TAR_OPT}f "${pkgdir}/${FILES_DB_FILE}" * + bsdtar --exclude=*${FILESEXT} -c${TAR_OPT}f "${pkgdir}/${FILES_DB_FILE}" * popd >/dev/null fi popd >/dev/null -- cgit v1.2.3-24-g4f1b