summaryrefslogtreecommitdiffstats
path: root/cron-jobs
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2009-10-31 20:07:17 +0100
committerThomas Bächler <thomas@archlinux.org>2009-10-31 20:07:17 +0100
commit27e8f1071c18b2f0cbf4deb84a1222db64a3d5dc (patch)
tree205c5aaf769b17e4c4b86a32a4f606c332872b4d /cron-jobs
parentc54f6c91dca7d84480f22aee60dda5861c73712e (diff)
downloaddbscripts-27e8f1071c18b2f0cbf4deb84a1222db64a3d5dc.tar.gz
dbscripts-27e8f1071c18b2f0cbf4deb84a1222db64a3d5dc.tar.xz
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
Diffstat (limited to 'cron-jobs')
-rwxr-xr-xcron-jobs/create-filelists7
1 files changed, 4 insertions, 3 deletions
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"