From 27e8f1071c18b2f0cbf4deb84a1222db64a3d5dc Mon Sep 17 00:00:00 2001 From: Thomas Bächler Date: Sat, 31 Oct 2009 20:07:17 +0100 Subject: create-filelists: Add pkgver-pkgrel to directory name In the past, pkgname-pkgver-pkgrel was extracted from the filename and sadly named "pkgname". Restore this behaviour --- cron-jobs/create-filelists | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cron-jobs/create-filelists') diff --git a/cron-jobs/create-filelists b/cron-jobs/create-filelists index 2a15e6a..c9d7db9 100755 --- a/cron-jobs/create-filelists +++ b/cron-jobs/create-filelists @@ -46,11 +46,12 @@ for repo in $repos; do # create file lists for pkg in $repodir/*${PKGEXT}; do pkgname="$(getpkgname "$pkg")" - tmppkgdir="${TMPDIR}/${repodir}/${pkgname}" + pkgver="$(getpkgver "$pkg")" + tmppkgdir="${TMPDIR}/${repodir}/${pkgname}-${pkgver}" mkdir -p "$tmppkgdir" - if [ -f "${CACHEDIR}/${repodir}/${pkgname}/files" ]; then + if [ -f "${CACHEDIR}/${repodir}/${pkgname}-${pkgver}/files" ]; then # echo "cache: $pkgname" - mv "${CACHEDIR}/${repodir}/${pkgname}/files" "${tmppkgdir}/files" + mv "${CACHEDIR}/${repodir}/${pkgname}-${pkgver}/files" "${tmppkgdir}/files" else # echo "$repo/$arch: $pkgname" echo '%FILES%' > "${tmppkgdir}/files" -- cgit v1.2.3-24-g4f1b