summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"